I need someone to fix the infinite NiceScroll on the mobile version of my website which fails with a JS error every time page is refreshed?
Website: [login to view URL]
When you visit the classifieds home page for the first time with a mobile device, the nice scroll works fine and as you scroll down the page additional bike ads are revealed. However, if you refresh the page and then attempt to scroll down the next set of bike ads fail to display.
I was able to extract the error in browserstack using either iphone or Samsung mobile devices
This is the error that is generated on page refresh
VM141:283 TypeError: jQuery("html").niceScroll is not a function. (In 'jQuery("html").niceScroll()', 'jQuery("html").niceScroll' is undefined)
(anonymous function) @ VM141:283
j @ [login to view URL]:2
fireWith @ [login to view URL]:2
ready @ [login to view URL]:2
J @ [login to view URL]:2
If there is an error in the JS then why doesn't it fail outright in the first instance? Instead it only fails on page refresh.
Also I'm unable to reproduce this issue using chrome inspector and selecting iPhone/Android device emulator.
It only occurs on real devices or using true emulation application like Browserstack.