Support » Plugin: Matomo Tracker » async/defer confusion

  • Resolved Simon Blackbourn

    (@lumpysimon)



    I’ve chosen ‘defer’ as the loading mode for the external JS file, but the script tag in the head section that loads the piwik.php file has both the async and defer attributes set. As async takes precedence over defer if both are present, this means the defer attribute is being ignored.

    The script tag that calls the track.js file is at the end of the body, and it does have the defer attribute, but my understanding is that the defer and async attributes only apply to scripts in the head section, so this will have no effect.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.