From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:44; helo=resqmta-ch2-12v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-12v.sys.comcast.net (resqmta-ch2-12v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:44]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 5AA2B77AAF for ; Wed, 21 Feb 2018 15:59:05 -0800 (PST) Received: from resomta-ch2-15v.sys.comcast.net ([69.252.207.111]) by resqmta-ch2-12v.sys.comcast.net with ESMTP id oeIqeENufIlkVoeIxeWcnp; Thu, 22 Feb 2018 00:00:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1519257607; bh=2pll1IhWAYfQY0PbhcGibtSO4b4wP4u3bNaCdN9ACPk=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=TTVq11ybl4yApk5Y2S4XrNoa9W0JwyNJGlbe9qL772F+ooBLIm+Mho9mYpHgURiIa wfeIbQTIkHbcrv177KLsc9l0zsMKajDFcHwFf/8NzesudAU+pT2vaz1HvVFumZ1C4K 2MnsA8neNy9wKPR8NXANznqIHJnahIZm8UhFWxVhnKJKfrpzjW05HxUziyUKzCXfKM LPFEPKPVZoEefvOH6p3+VzaMih6Q5evKKGeeOCtBWfuxLE1mxT+sUPXEfoBX1JxEX3 AXhykfqF8BilMZLhw6xAHNxlOdkM1XcHpMUjxpZ7rwm8/0hYaQ5nCvsg+eOalEDCQf aDSn3NC3Kfe5Q== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-15v.sys.comcast.net with SMTP id oeIwegNAVWbkhoeIwehVOO; Thu, 22 Feb 2018 00:00:06 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: <20180120065652.eklhad@comcast.net> <20180221230751.5orqxzkaixf5y5th@toaster> User-Agent: edbrowse/3.7.1 Date: Wed, 21 Feb 2018 19:00:06 -0500 Message-ID: <20180121190006.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfDbU0vpFp01y9OD09J7IxuOCo9YGh5h4XHaiQFMN6j8Snsv+ZVY5Ok6Qy6WpXqdV1BK/5qT8QOFFac8JYg7WwVXvX0cso7XeFMyRx7xeK+2IbscW+8+e yKXsCAfhLq+iRxhCtiqWGUH+OsCOAI0Tm79un3UKt9Og8pmTgeOTAyAx Subject: [Edbrowse-dev] :before :after X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 23:59:05 -0000 > is it possible to only apply *these* selectors and quickly skim over the > rest and do the on-demand stuff for them? Well you're thinking exactly as I. I did some stats, and 280 out of 5000 selectors in stackoverflow are of the before after type. Applying 280, rather than 5000, is probably feasible. And remember, stackoverflow is almost certainly a worst case. Other sites don't have 5000 selectors, or 280 injecting selectors. I laid some groundwork, wherein these selectors are flagged as generating text. cssList[i].gentext = true; Still I may want to optimize the way these selectors are applied. Maybe some of the hashing code that I wrote, then decided I didn't need and threw away, but it's still in github if I want it. Karl Dahlke