Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomodule attribute on script tag #2846

Closed
robbie-mac opened this issue Jul 18, 2017 · 2 comments
Closed

nomodule attribute on script tag #2846

robbie-mac opened this issue Jul 18, 2017 · 2 comments

Comments

@robbie-mac
Copy link

Reading the spec in its current form, it states that adding the nomodule attribute to the script tag will prevent execution of said script.

What would be the barriers to changing the spec to prevent requesting the resource, as in ignoring the tag completely, and not just preventing execution of the script?

If I understand correctly, this is to ease migration to an es2015 modules, and maybe an HTTP/2 way of thinking. During the trasnsition, if we are following best practices and bundling our code, we end up with a huge (potentially) download only to have it not executed, thus wasting the bandwidth.

Or am I missing something?

@domenic
Copy link
Member

domenic commented Jul 18, 2017

If you read the actual processing model, you'll see that the resource is indeed not requested. You're probably reading an imprecise non-normative description somewhere.

@robbie-mac
Copy link
Author

@domenic Thanks for the quick reply. Ill file a bug with Mozilla. Firefox (Developer edition) with modules enabled requests the resource, but does not execute the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants