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

application/javascript is deprecated #286

Closed
JoakimCh opened this issue Sep 7, 2023 · 1 comment
Closed

application/javascript is deprecated #286

JoakimCh opened this issue Sep 7, 2023 · 1 comment

Comments

@JoakimCh
Copy link

JoakimCh commented Sep 7, 2023

Per the IANA Media Types registry, RFC 9239, and the HTML specification, JavaScript content should always be served using the MIME type text/javascript. No other MIME types are considered valid for JavaScript, and using any MIME type other than text/javascript may result in scripts that do not load or run.

Source: MDN

What else does it use that is deprecated? I didn't check.

@broofa
Copy link
Owner

broofa commented Sep 8, 2023

jshttp/mime-db#194

@broofa broofa closed this as completed Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants