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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 8 20:30:46 PST 2013


--- Comment #7 from Marc Hoyois <marc.hoyois at gmail.com>  2013-02-08 20:32:56 PST ---
(In reply to comment #6)
> I have found that inserting style nodes can be extremely slow given the following two prerequisites:
> 1. The CSS text is \n separated
> 2. The head.appendChild(style) happens BEFORE style.innerText = '...css...'
> In my example, I have 2000 styles.
> If the above two conditions hold, it takes about 30 seconds to insert the styles.
> If one of the conditions does not hold, it takes about 19 milliseconds.
> I am attaching a sample that exhibits the problem.

You HAVE to do (2) or else the styles are not applied at all, in my experience...

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