Support » Plugin: DuracellTomi's Google Tag Manager for WordPress » “jQuery” conflicts with cloudfare rocket loader

  • When enabling cloud fare the rocket loader for scripts, GTM is throwing the “jQuery” not found error message in console.

    Reason for issue:
    Rocket loading will load the combined scripts (All .js files) after the loading of HTML Dom and GTM is using the inline jQuery dependable scripts for datalayer handling.

    1. using core javascript instead of jQuery
    2. output the datalayer related scripts into separate js file and using the script localization for passing the data.

Viewing 1 replies (of 1 total)
  • Plugin Author duracelltomi


    Thanks for this suggestion.

    It is on the roadmap to solve this kind of conflict however this will not solve the way rocket loader works. You can expect other scripts to break as well. As far as I have read about this on other forums, rocket loader can mess up several other scripts.

    The current plan is to remove as much inline script as possible and move it to separate JS files. This will be also helpful for other cache and minification solutions.

Viewing 1 replies (of 1 total)
  • The topic ‘“jQuery” conflicts with cloudfare rocket loader’ is closed to new replies.