Execute JS code (using jQuery) with and without Turbolinks -


i'd execute code (using jquery) when page loading. want work , without turbolinks.

for turbolinks, code following :

document.addeventlistener("turbolinks:load", function() {   // ... }) 

what have modify make work without turbolinks too?

thank you


Comments

Popular posts from this blog

CS-Cart - Change login URL in notification email -

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -