Skip to content
Snippets Groups Projects
  • Michał Gołębiowski's avatar
    e625af3f
    Remove type="text/javascript" from script tags. · e625af3f
    Michał Gołębiowski authored
    "text/javascript" is not a correct MIME type (the correct one is
    "application/javascript") but it's not even needed; all browsers default
    to the correct type and treat it as executable JS when type is ommited.
    Since not all browsers recognize the "application/javascript" MIME type
    the only way to both stay compliant and to support all popular browsers
    is to omit the type. It's also shorter this way.
    e625af3f
    History
    Remove type="text/javascript" from script tags.
    Michał Gołębiowski authored
    "text/javascript" is not a correct MIME type (the correct one is
    "application/javascript") but it's not even needed; all browsers default
    to the correct type and treat it as executable JS when type is ommited.
    Since not all browsers recognize the "application/javascript" MIME type
    the only way to both stay compliant and to support all popular browsers
    is to omit the type. It's also shorter this way.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.