Skip to content

Commit 1b3cdb9

Browse files
committed
[mediaqueries] Add issue on the definition of scripting:initial-only
1 parent 2078b46 commit 1b3cdb9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

mediaqueries/Overview.bs

+30
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,36 @@ scripting</h3>
19061906
that render a page on a server
19071907
and send a nearly-static version of the page to the user.
19081908

1909+
Issue: Should there be an explicit minimum threshold to meet
1910+
before a UA is allowed to claim ''initial-only''?
1911+
Having one would mean authors would know
1912+
what they can depend on,
1913+
and could tailor their scripts accordingly.
1914+
On the other hand, pinpointing that threshold is difficult:
1915+
if it is set too low,
1916+
the scripting facilities that authors can depend on
1917+
may be to constrained to be practical,
1918+
even though actual UAs may potentially
1919+
all support significantly more.
1920+
But trying to set it higher may cause us to exclude
1921+
UAs that do support scripting at loading time,
1922+
but restrict it in some cases based on complex heuristics.
1923+
For instance, conservative definitions likely include at least
1924+
running all inline scripts and firing the DOMContentLoaded event.
1925+
But it does not seem useful for authors to constrain themselves to this
1926+
if most (or maybe all) ''initial-only'' UAs
1927+
also load external scripts (including ''async'' and ''defer'')
1928+
and fire the load event.
1929+
On the other hand,
1930+
requiring external scripts to be loaded
1931+
and the load event to be fired
1932+
could exclude UAs like Opera mini,
1933+
which typically do run them,
1934+
but may decide not to based on timeouts and other heuristics.
1935+
1936+
1937+
1938+
19091939
<dt><dfn>none</dfn>
19101940
<dd>
19111941
Indicates that the user agent will not run scripts for this document;

0 commit comments

Comments
 (0)