SOLVED: Real preloader...now custom 404 not working

I’ve implemented a preloader as per https://www.wix.com/corvid/forum/community-discussion/real-preloader-on-a-wix-website

Now the custom 404 page doesn’t work correctly (the page displays fine, but any links on the page do no work). I’ve contacted WIX support, they say that it is because of the embedded preloader code from above…

This only happens if the preloader is applied to ALL pages, if it is just applied to specific pages then no problem.

Anybody ever come across this?

Scratch this - I’ve found the solution. I won’t remove the post in case anyone else comes across it in the future. The solution is to manually apply the preloader code to each page specifically rather than choosing ALL PAGES (so Dashboard>Tracking&Analytics>Body>Choose Specific Pages). And then make sure to not apply it to the custom 404 page!

UPDATE: In case this helps anybody, I’ve also found that a custom pre-loader (or it seems any custom code using document objects) in dynamic pages causes the same problem and breaks the page.