[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 15:57:49 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=66634
donlinep at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |donlinep at gmail.com
--- Comment #6 from donlinep at gmail.com 2013-02-08 15:59:59 PST ---
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.
--
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