Follow

Sumo and Rocket Loader

If you are trying to use the old, manual Sumo install code and Rocket Loader on the same site, please keep in mind that Rocket Loader often keeps Sumo from working properly.

The old install code looks like this:

<script src="//load.sumome.com/" data-sumo-site-id="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" async="async"></script>

The new install code looks like this:

<script async>(function(s,u,m,o,j,v){j=u.createElement(m);v=u.getElementsByTagName(m)[0];j.async=1;j.src=o;j.dataset.sumoSiteId='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';j.dataset.sumoPlatform='wordpress';v.parentNode.insertBefore(j,v)})(window,document,'script','//load.sumo.com/');</script>

If you are using the new manual install code, it works great with Rocket loader. If you're using an old manual install code, you'll need to make a quick modification to the script tag.

Add the data-cfasync="false" attribute to your Sumo install code (do note that the data-cfasync attribute must be added to the HTML script tag before the src attribute):

<script data-cfasync="false" src="//load.sumome.com/" ... 

Beyond this, we do not offer any dedicated support for any problems you may run into due to using Rocket Loader with Sumo.

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.