-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
W3C validator warning on the internal GA templates: The type attribute is unnecessary for JavaScript resources #6379
Comments
Unless you somehow need it. I think we've had this discussion before, as the minifier we use uses What does W3C say about this? <script type="text/vbscript">
document.write("Hello World!")
</script> If someone can confirm that the minifier defaults to JS for script tags, then fine. |
It seems that "application/javascript" is the default value for |
Poked around in tdewolff/minify for a few seconds and it does appear like it treats both In {`<script type="text/javascript">js</script>`, `<script>js</script>`},
{`<script type="application/javascript">js</script>`, `<script>js</script>`}, I could be wrong, though... |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I have a warning with the W3C validator: "The type attribute is unnecessary for JavaScript resources" when I use the internal template for Google Analytics.
Could you remove the
type="application/javascript"
attribute from thescript
html tag of the internal GA templates?I found this if it could help you:
> hugo version Hugo Static Site Generator v0.57.2/extended darwin/amd64 BuildDate: unknown
The text was updated successfully, but these errors were encountered: