Page MenuHomePhabricator

Move inline <script> for jsvars above <link>s for external stylesheets
Closed, ResolvedPublic

Description

Per web performance recommendations: inline <script> forces blocking on open stylesheet downloads. It should be safe to move the <script> for the jsvars above the <link>s so it doesn't trigger the blocking.

Probably needs adjustment in multiple skins...


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/White_dwarf

Details

Reference
bz20204

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:47 PM
bzimport set Reference to bz20204.

(In reply to comment #0)

Per web performance recommendations: inline <script> forces blocking on open
stylesheet downloads. It should be safe to move the <script> for the jsvars
above the <link>s so it doesn't trigger the blocking.

Probably needs adjustment in multiple skins...

While we're at this: the ySlow documentation says external JavaScript should be the bottom whenever possible (i.e. if they don't depend on being someplace else because they use document.write or something): http://developer.yahoo.com/performance/rules.html#js_bottom