javascript - My full screen bigvideo.js video works locally on all pages but once on the server stops working, what reason could this be? -
if go this site video background works on home page not or blog page. has exact same script code , javascript functions reason , blog page won't show video (but locally), home page. how be?
the problem not bigvideo.js. have other code on page throwing error before bigvideo.js runs, never has chance thing.
the buggy code in question in 'jquery.imagesloaded.min.js'. first problem code check given link on current page fails, showing 'about.html' same 'index.html'.
the second problem check make sure target exists wrong, you're trying access $target.offset().top when $target empty , therefore result of offset null. instead, check should be:
if ($target.length) { if load page browser developer tools open (any browser do), console or debugger give error message showing problem is.
Comments
Post a Comment