How to remove unnecessary type attribute for JavaScript?
-
Hey @braekling
When I use the “default tracking” option, the plugin inserts a snippet of javascript, typically in the footer. First three lines shown here:
!-- Matomo -->? <script type="text/javascript">? var _paq = window._paq = window._paq || [];?
While that works perfectly fine, it still triggers a single warning when validating html:
Warning: The type attribute is unnecessary for JavaScript resources. <script type="text/javascript">
For details see: https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Foldrup.dk%2F#l416c31
Since this is the only warning I get, I’m obviously interested in getting rid of it. I can enter the tracking code manually, leaving out the “type=text/javascript”, but it’s much less error prone, using the built in default tracking.
Would you consider removing the unnecessary type attribute from the default code, or could you hint a code line in the plugin, where I could change it myself?
All the best
BjarneThe page I need help with: [log in to see the link]
- The topic ‘How to remove unnecessary type attribute for JavaScript?’ is closed to new replies.