Last modified: 2005-01-17 12:08:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2624, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 624 - Nested @import causes IE rendering delay
Nested @import causes IE rendering delay
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 640
  Show dependency treegraph
 
Reported: 2004-10-02 23:11 UTC by Tom Gilder
Modified: 2005-01-17 12:08 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tom Gilder 2004-10-02 23:11:36 UTC
There is currently a nested import to load the site-wide CSS file. wiki.phtml?title=-
&action=raw&smaxage=0&gen=css is loaded, which contains any preferences-related CSS (such as underlining 
links or not), which then uses @import for the site-wide skin CSS file (such as MediaWiki:Monobook.css).

This causes a huge delay when IE renders the site (unless it has all the CSS cached), because...

 * IE finds a <link> element on the page, so it waits for *all* CSS to download before rendering anything
 * After the first (title=-) stylesheet has loaded, it sends off requests for all page images and other 
external content
 * Only when all images have fully downloaded does it move on to download the site-wide CSS, and only 
then does it render anything

It would be *much* more efficient if the double-@import was killed off. Not only would it speed up IE's 
initial page rendering considerably, it would also save a wasted HTTP request.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links