[Webkit-unassigned] [Bug 54108] Layout stall waiting for external scripts to load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 12 13:06:40 PST 2011


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





--- Comment #13 from Silvio <silvio.ventres at gmail.com>  2011-02-12 13:06:40 PST ---
Since any, especially domain-external, host latency is a dynamic metric, the user has a very limited way of guessing what it will be at time of page view.
Thus, even though some resource might _not_ have the "defer/async" attribute, the user will not be there at time of need to add it, saving the reader from frustration.
>From point of view of developer, everything should be "deferred" - the more it helps interactivity the better. Tracking dependencies is not an easy user-oriented task, and, if all hosting works fast, no problems should emerge.

Forcing users to add defer/async "where needed" will make them add it everywhere to get higher performance in 80% cases, getting you into the same situation as now, but with all scripts starting with "<script defer" instead of just "<script". Why not preempt that ? The browser is a better place to make the call: "host is slow. should show something and possibly rerender, or show nothing and wait?".

If you want to force web developers to add anything, add a "strict" attribute.
The developers will know that it's use might slow down the initial paint, and use it sparingly.

-- 
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