Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome lags with big PNG #61

Open
leemlller opened this issue Apr 8, 2013 · 1 comment
Open

Chrome lags with big PNG #61

leemlller opened this issue Apr 8, 2013 · 1 comment

Comments

@leemlller
Copy link

i have only 4 PNG images (2000px 1250px) each of them 300-600Kb with transparency in jParallax Firefox deal animations smoothly but in last Chrome things look laggy.
no more than 1fps
Where may be problem? image size? res? or transparency?

example image: https://dl.dropbox.com/u/2457864/04.png

@joshbtn
Copy link

joshbtn commented May 31, 2013

I"m seeing a similar problem. My images are half the size, however they scale up so the background is always 100% of the screen, chrome seems to slow way down with that as well. Seems to be related to requestAnimationFrame, I stuck a quick fix here https://github.com/joshatjben/jparallax/blob/quickDirtyChromeLagFix/js/jquery.parallax.js . Just commented out everything but the setTimeout fallback in the requestFrame function... it's not pretty but it did what i needed it to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants