[TYPO3-english] includeJS --- how to remove the type-attribute?

Mike Minyades mike.minyades at gmail.com
Mon Jan 15 12:05:35 CET 2018


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.




More information about the TYPO3-english mailing list