That's realy strange issue, i have quite a lot of plugins and custom scripts in my page and normaly it all works just fine, but if i would try to refresh page, not just click on some link, some of my scripts just stops working, mostly the ones who is changing css properties, my firebug doesn't show any errors, what could be causing something like that?
Answer from original poster:
So the problem was that i used
$(document).ready()
what i realy needed was$(window).load()
I know this is an old question I stumbled upon. Anyway, my answer might help another when the same problem arises. Unfortunately I haven't got the reputation to comment on Trott's answer above.
That being said, if you are using jQuery 1.8 or any version after his, then use $(window).on('load', function() { ... });
. The $(window).load()
was deprecated in jQuery version 1.8 and will throw the error jquery url.indexOf is not a function
(at least in jQuery 3.4.1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With