// mime type · application type
application/javascript
JavaScript · .js
What application/javascript is
application/javascript is the type for JavaScript files. Browsers require a JavaScript MIME type to execute a script loaded via <script src>; serving it as text/plain will block execution.
How it's used
You'll see this as a Content-Type value on requests and responses — for example Content-Type: application/javascript. It's the type associated with the .js file extension. Application types cover structured data and binary formats — from JSON and XML to PDFs, archives, and Office documents.
Other application types
application/json application/ld+json application/xml application/javascript application/pdf application/zip application/gzip application/octet-stream application/x-www-form-urlencoded application/wasm application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.openxmlformats-officedocument.wordprocessingml.document