You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With script tags, when module support was added, nomodule was also added so you could have both in your markup and the browsers that knew modules loaded modules and intentionally didn't load nomodules, I feel a similar pattern is needed for WebBundles.
In the chromium Origin Trial, it is mentioned that its possible in JS to do feature detection for this, but that would require having web app developers to effectively polyfill webbundles ourselves and only add the JS bundle script tag at runtime once feature detection has happened, increasing the size of the html body and adding latency when instead this feature can ship with polyfill mechanisms baked in.
The text was updated successfully, but these errors were encountered:
SinZ163
changed the title
Clarify how to handle using web bundles when browsers support it, and traditional bundlers when they dont
Clarify how to handle using sub resourceweb bundles when browsers support it, and traditional bundlers when they dont
Mar 24, 2021
SinZ163
changed the title
Clarify how to handle using sub resourceweb bundles when browsers support it, and traditional bundlers when they dont
Clarify how to handle using sub resource web bundles when browsers support it, and traditional bundlers when they dont
Mar 24, 2021
Introducing <script nowebbundle type=text/javascript src=bundle.js></script> could be a solution for this.
Currently we are using link elements for subresource web bundles in the Origin Trial.
But there is a discussion to use <script> elements for security reason.
So if we introduce<script type=webbundle> elements instead of <link rel=webbundle>, introducing <script nowebbundle> sounds plausible.
Title is a bit verbose but gets the point across.
With script tags, when module support was added, nomodule was also added so you could have both in your markup and the browsers that knew modules loaded modules and intentionally didn't load nomodules, I feel a similar pattern is needed for WebBundles.
In the chromium Origin Trial, it is mentioned that its possible in JS to do feature detection for this, but that would require having web app developers to effectively polyfill webbundles ourselves and only add the JS bundle script tag at runtime once feature detection has happened, increasing the size of the html body and adding latency when instead this feature can ship with polyfill mechanisms baked in.
The text was updated successfully, but these errors were encountered: