Hacker News new | past | comments | ask | show | jobs | submit login

any idea why i get the JS error "requestAnimationFrame is not defined" when I run the HTML page on my local system. Same browser (firefox 12)) renders the online-like just fine. As i understand this method is part of the browser's JS api. So, why is it not defined if I run it "locally"?



Have you downloaded all the files? requestAnimationFrame is defined in http://minimal.be/lab/fluGL/RequestAnimationFrame.js


thanks; i missed the import. I only remember that the method also exists in the JS api itself. did not think that there might be a wrapper around with the same name :-)


AFAIK, no browser uses the name 'requestAnimationFrame'; everyone prefixes it still.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: