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
Is there no limitation to what data can be represented by a script tag?
Can any data then be used?
Why is there a focus on "html"? Wouldn't a way to import any kind of file as a string be better(like https://github.com/webpack-contrib/raw-loader)?
The text was updated successfully, but these errors were encountered:
<script> tags can be used to load many things. Indeed, there is a classic strategy for loading JSON across origins with a <script> called JSONP. The main limitation is that any content loaded with a <script> today is parsed as JavaScript.
The example shows a html module in a script tag:
https://github.com/PolymerLabs/html-modules-toolkit/blob/master/examples/common/src/index.html
Is there no limitation to what data can be represented by a script tag?
Can any data then be used?
Why is there a focus on "html"? Wouldn't a way to import any kind of file as a string be better(like https://github.com/webpack-contrib/raw-loader)?
The text was updated successfully, but these errors were encountered: