I found this script here at Stackoverflow:
https://stackoverflow.com/a/7571867/2518302
When put that code in a normal:
$(document).ready(function () { Script });
.. the script runs good. The problem is that its not affect dynamic loaded content at the site, so if having a div that loads in dynamic (after pageload) the script dont work at that div.
Then if trigger the script to run again at the same time as the dynamic content loads the already existing divs using this script on the page gets the script for its second time since pageload (script executed once at pageload and once at dynamic load). The results of that is that all the divs that got the script twice scroll at double speed.
Is there any way to just execute the script at pageload and make it affect both content thats on page since pageload and later dynamic loaded content?
Thanks for you time.