Customisation Script Error
Posted 08 December 2012 - 09:26 AM
I'm trying to install a fundraising script onto my site but it is causing a few errors.
The script is:
which is placed in the header script under CSS. You can see it works in putting the badge on the right of the screen.
There are a few errors showing in Pingdomcan anyone advise what the error is? The script/badge is working successfully on other none page lines sites.
Script program & working site -
My site -
Posted 08 December 2012 - 02:36 PM
It still brings up the errors shown in Pingdom. It also affects the mobile load (the feature image isn't resized).
Posted 08 December 2012 - 03:13 PM
can you remove that js? just to see whats going on?
Sorry Simon when you say remove the js which part do you mean?
Posted 08 December 2012 - 05:01 PM
prototype, scriptaculas, jquery, nextgen, lightbox, browsercheck just to name a few!! So you need to start disabling stuff to find out the conflict.
I tried out the code on my test setup and it worked perfectly, so we can assume its something 3rd party causing it.
Posted 08 December 2012 - 05:47 PM
By deactivating lightbox it successfully clears the errors showing in pingdom. The only issue not is that it stops the features from changing and also resizing in mobile view.
Posted 08 December 2012 - 06:15 PM
Figured it out... the js file is NOT compatible with jquery in wordpress, which is why it includes its own at runtime, and this in turn breaks every other script that uses jquery lol.
This version (attached) of the file works, so save it to your site and adjust the original script snippet to load it instead of the remote one.
Posted 08 December 2012 - 06:32 PM
Thanks Simon. All looks ok apart from 'behind' the scenes errors - pingdom issues -
Posted 08 December 2012 - 06:44 PM
Those errors are caused by something else, disable the lightbox again
Posted 08 December 2012 - 06:51 PM
Disabling Lightbox removes those errors. Is there any alternate to light box? It really helps when viewing items in the store rather than opening the image in a new page!
Posted 08 December 2012 - 06:53 PM Best Answer
Well ive used this one before:
But your gonna have to find one thats compatible with your stuff.
- hibbsy78 likes this