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

Parallax background conflicting with Google Analytics and WordPress #126

Open
andreasbaumde opened this issue May 16, 2015 · 2 comments
Open

Comments

@andreasbaumde
Copy link

Hello there,

I have a weird problem regarding the use of parallax backgrounds. I have a parallax background at the upper part of my website and as soon as I implement Google Analytics and/or wp_head() the initial position of the parallax background gets messed up.

I'm firing $.stellar() inside a $(document).ready() block, so there should be no chronological problem.

Without Google Analytics and the wp_head() call, the value of background-position gets a correct value of "0px 71.5px". With Google Analytics and/or the wp_head() call the value is "0% 0%" and as soon as I resize the window or start to scroll, the value jumps to the correct value.

Can you help me with that?

Thanks in adavance.

Best Regards!

@andreasbaumde
Copy link
Author

Update: If I fire $.stellar inside a $(window).load() block, Stellar sets the correct background-position value, but everything is little bit delayed. While the images are loading, the background-positions are not correct. As soon as all images are completely loaded, the background-position via Stellar gets applied. This is only for a short moment (depending on the internet connection), but it's not really pretty.

So my problem is still there.

@matthewhirsch
Copy link

Also having issues with WP as well. But for some reason everything works properly in Preview mode. Does it work for you that way Andreas?

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