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

Load amp-pixel and amp-analytics independent of where on the page they appear. #1872

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

cramforce
Copy link
Member

Before this, based on position, analytics may e.g. not load immediately when the page starts out scrolled down.

Also adds display:none to the tags, because they have no layout anyway. This slightly improves rendering speed. Especially now that they are position:fixed.

Fixes #1864

…y appear.

Before this, based on position, analytics may e.g. not load immediate when the page starts out scrolled down.

Also adds `display:none` to the tags, because they have no layout anyway. This slightly improves rendering speed. Especially now that they are `position:fixed`.

Fixes ampproject#1864
@cramforce
Copy link
Member Author

@avimehta FYI

@avimehta
Copy link
Contributor

avimehta commented Feb 9, 2016

lgtm

@cramforce cramforce assigned avimehta and unassigned erwinmombay Feb 9, 2016
cramforce added a commit that referenced this pull request Feb 9, 2016
Load amp-pixel and amp-analytics independent of where on the page they appear.
@cramforce cramforce merged commit b755919 into ampproject:master Feb 9, 2016
@cramforce cramforce deleted the always-analytics branch February 9, 2016 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load amp-analytics independent of page position
3 participants