Closed Bug 1585674 Opened 2 years ago Closed 2 years ago

@import scanner could start loads a bit earlier.

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

Rather than when finishing the style element, it could be useful to just do that while scanning the inline stylesheet text. People like long <style> elements :)

Consider the case of a very big <style> element, with a few imports on top,
which we cut half-way over the network.

The @import scanner would be likely to have found anything there is to be found,
but we won't process it until we pop the <style> element. It's relatively low
effort to support this use-case by making Scan() return the already-found urls.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/05bd576d46f5
Start loads more incrementally in the @import scanner. r=hsivonen
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.