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

feature(viewer): read csi from viewer params #2033

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

erwinmombay
Copy link
Member

No description provided.

@erwinmombay
Copy link
Member Author

we'd want to merge this after the viewer already has the new param since i set the default to be "off" (which we can reverse of course)

@@ -194,7 +194,8 @@
paddingTop: this.header./*OK*/offsetHeight,
visibilityState: this.visibilityState_,
prerenderSize: this.prerenderSize_,
viewerorigin: parseUrl(window.location.href).origin
viewerorigin: parseUrl(window.location.href).origin,
csi: 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets call this property performanceTracking. At least on our side.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

added some additional code in performance.js to ignore all ticks and flush calls when performanceTracking is off.

@cramforce
Copy link
Member

LGTM with one style comment

@erwinmombay erwinmombay force-pushed the csi-off branch 2 times, most recently from 4b51b95 to e06b34e Compare February 18, 2016 23:52
erwinmombay added a commit that referenced this pull request Feb 19, 2016
feature(viewer): read `csi` from viewer params
@erwinmombay erwinmombay merged commit b65f044 into ampproject:master Feb 19, 2016
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

Successfully merging this pull request may close these issues.

2 participants