Closed Bug 2765 Opened 26 years ago Closed 26 years ago

shouldn't load all alternate stylesheets before displaying

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: peterl-retired)

References

()

Details

You currently display the document without any stylesheets, then load all stylesheets, whether used or not, and then reflow when they are all loaded. It would probably be better to load the ones that are to be used first, and then (if you want) pre-load the alternates. It's very slow to load 3 stylesheets when you only need one. Additionally, if you start loading another link while the stylesheets are loading, the stylesheet loading should be stopped. It isn't. (I do like the idea of displaying first without the stylesheet. And yes, I am currently testing over a modem.)
Setting all current Open/Normal to M4.
Actually, I think you shouldn't load alternate stylesheets until they are requested, for the following reasons: 1) It uses bandwidth 2) It messes up hit-counting, which drives webmasters crazy 3) It slows down anything else the user may be doing (telnet, etc.) 4) Because of (3), it discourages the use of alternate stylesheets.
QA Contact: 4110
Status: NEW → ASSIGNED
Target Milestone: M4 → M5
This bug will probably be fixed by Peter forthcoming stylesheet manager class. Related bugs: bug 2029, bug 2765, bug 3421, bug 4529. To find related bugs, search the description field for the [SSMC] marker.
Target Milestone: M5 → M6
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
We now defer loading alternate sheets until all other sheets have loaded.
Status: RESOLVED → VERIFIED
Verified fixed using 6/14 Apprunner. Stylesheets loading is immediate.
You need to log in before you can comment on or make changes to this bug.