Open Bug 1599793 Opened 5 years ago Updated 3 years ago

Consider changing script preloads to Leaders when respective referring script tags are found eligible for Leader

Categories

(Core :: Networking, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mayhemer, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

The first version of link/preload handling in ScriptLoader::StartLoad is using the Unblocked class. There is this following concern:

TODO - What about when we encounter a blocking head referred script for
this preload? It should turn to a Leader (change the group); more
complicated because we will be stopped at
https://searchfox.org/mozilla-central/rev/8b7aa8af652f87d39349067a5bc9c0256bf6dedc/parser/html/nsHtml5TreeOpExecutor.cpp#974
before we even enter the ScriptLoader code. Question is what web
developers expect here: load in different order but execute in the
expected (markup referred) order. Order of execution is ensured, but
the load priorities are not...

Priority: -- → P2
Whiteboard: [necko-triaged]
Priority: P2 → P3
Depends on: 1618549
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.