We recently found an odd behaviour in Safari that stopped a script working on page load. We came back to the page and then it periodically worked, but on the whole it simply wasn't firing up. If you have the same problem then we would advise the following:-
1. Make sure you are using valid HTML and Doctype. To validate your HTML you can visit the W3 Markup Validation Service
2. If you are loading the script with document ready function change to window load function:-
This fixes scripts where the elements haven't finished loading and miraculously fixed our script issue in Safari.Of course let's not rule out that you have a syntax error in your script, but if it works on other browsers then the above may well sort it for you too. Let us know how you get on!
Join in the Discussion