Rocket Loader - jquery not loaded

I love rocket loader but sometimes it doesn’t love me.

OK, I’m scraping my own content to improve performance. The difference is massive and amazing!
Great…
BUT…
If you scrape with rocket loader enable to breaks $(document).ready… Basically, jquery isn’t loaded.

I’ve tried window.addEventListener(‘load’,function(){ with no joy.

I know I can run a loop on a fake jquery object but really don’t want to go down that route.
Anyone else solved this problem?

Ok I think I’ve solved it… It took posting here to figure it out.

Scrape with additional query string and use pagerules

/*rocket=off
Seems to be working.

1 Like