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

Lower the load priority of ad shaped iframes. #3863

Merged
merged 1 commit into from
Jul 2, 2016

Conversation

cramforce
Copy link
Member

Some sites use amp-iframe to load ads. This is not OK in AMP. With this change at least they render with the same priority as ads.

@@ -436,6 +444,35 @@ function makeIOsScrollable(element) {
return element;
}

// Most common ad sizes
const adSizes = [[300, 250], [320, 50], [300, 50], [320, 100]];
Copy link
Contributor

Choose a reason for hiding this comment

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

A comment about which is width, which is height?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point and done.

@muxin
Copy link
Contributor

muxin commented Jul 1, 2016

I don't know about the typical shape of ads. Otherwise LGTM

@muxin muxin added LGTM and removed NEEDS REVIEW labels Jul 1, 2016
Some sites use `amp-iframe` to load ads. This is not OK in AMP. With this change at least they render with the same priority as ads.
@muxin
Copy link
Contributor

muxin commented Jul 1, 2016

LGTM

@cramforce
Copy link
Member Author

I asked @jasti about the ad sizes :)

@jasti
Copy link
Contributor

jasti commented Jul 1, 2016

Oh yeah, so numb to saying these dimensions all the time. Always width x height.

@cramforce cramforce merged commit 8755a24 into ampproject:master Jul 2, 2016
@cramforce cramforce deleted the iframe-priority branch July 2, 2016 03:40
jonasmattsson1 added a commit to widespace-os/amphtml that referenced this pull request Jul 5, 2016
* master: (236 commits)
  trim all the columns (ampproject#3894)
  Refactoring: Turn private custom element methods into functions. (ampproject#3882)
  Lower the load priority of ad shaped iframes. (ampproject#3863)
  JsDoc fix (ampproject#3892)
  Add screenshots for Opera to AMP Validator extension. (ampproject#3866)
  Fix renaming of generated JSCompiler_prototypeAlias variable. (ampproject#3887)
  fix typo in amp-sidebar.md (ampproject#3833)
  Validator Roll-up (ampproject#3885)
  [CryptoService] Leverage browser native Crypto API to hash strings. (ampproject#3850)
  Size update (ampproject#3883)
  copy amp-ad docs to builtins (ampproject#3879)
  move doc to extension (ampproject#3878)
  [amp-experiment] Exposes isDismissed() method in AmpUserNotification (ampproject#3832)
  fix action-impl warning on dist (ampproject#3867)
  Add params for microad (ampproject#3827)
  Fixed some A4A tests. (ampproject#3859)
  Updates to colanalytics vendor config for amp-analytics. (ampproject#3849)
  Changes to implement A4A (AMP ads for AMP pages) (ampproject#3534)
  Addresses comment left over from PR#3841 (ampproject#3853)
  Expose submit event with on=submit:el.action syntax. (ampproject#3739)
  ...
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.

3 participants