[Webkit-unassigned] [Bug 66634] Inserting <style> nodes in the DOM can be REALLY slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 23 13:37:14 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66634





--- Comment #4 from Marc Hoyois <marc.hoyois at gmail.com>  2011-08-23 13:37:14 PST ---
I was actually entering the command in the console so the problem is unrelated to javascript: URLs.

My ClickToFlash extension does use an inline stylesheet like this to manipulate the shadow DOM of its <video> elements, but I never noticed the problem with it (presumably because there is no delay on the pages where the extension creates video elements).

I noticed the problem with an HTML5-outliner bookmarklet that I did. I could work around the bug using the style attribute instead, but it's really impractical, especially since I need to reset lots of CSS properties.

Generally, any extension that needs lots of dynamic styles will want to use an inline stylesheet, so I think many extensions might be suffering from this delay.

Additional observation: actually adding lots of CSS styles using sheet.insertRule does not cause any visible delay once the <style> element is in the document.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list