Discussion:
[TYPO3-english] includeJS --- how to remove the type-attribute?
Mike Minyades
2018-01-15 11:05:35 UTC
Permalink
hi

i am trying to optimize the html-output and i noticed that by default
there is always the attribute type="text/javascript" added to all
included javascript-files.

for websites with the doctype html5 (<!DOCTYPE html>) the w3c-validator
schows the following warning:

"The type attribute is unnecessary for JavaScript resources."

how can i remove the type attribute for included and merged
javascript-files?

"page.includeJS.type >" seems not to work.

Loading...