Order jQuery Happens

Excursionist
58 0 7

I'm using the app "Unlimited Product Options by Only Growth" and am trying to change the HTML markup that this app creates after it load with my own jQuery.  However, I can't figure out how to make my jQuery run AFTER the app runs.  I can affect any part of the DOM on the page except for what the app creates.

I'm kinda new with jQuery so I hope this isn't a dumb question.  Any advice?

Thanks

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
409 0 60

Hi Kevmon_mon,

Britton here with the Shopify support team.

If you are wanting to create some jQuery scripts that will only run after all other javascript on a page has run I would try nesting it inside of this:

$(window).onload( function() {

});

That should make it so all the other scripts have loaded first. 

I hope that helps!

-Britton

Britton Shopify Guru
0 Likes