Skip to content

Commit

Permalink
πŸ› Update preconnects in amp-youtube component (#39903)
Browse files Browse the repository at this point in the history
* Update preconnects in amp-youtube component

* Remove preconnect to Google Fonts since not on mobile
  • Loading branch information
westonruter committed Mar 26, 2024
1 parent c4e7f1b commit c6e23b1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions extensions/amp-youtube/0.1/amp-youtube.js
Expand Up @@ -115,8 +115,6 @@ class AmpYoutube extends AMP.BaseElement {
const preconnect = Services.preconnectFor(this.win);
const ampdoc = this.getAmpDoc();
preconnect.url(ampdoc, this.getVideoIframeSrc_());
// Host that YT uses to serve JS needed by player.
preconnect.url(ampdoc, 'https://s.ytimg.com', opt_onLayout);
// Load high resolution placeholder images for videos in prerender mode.
preconnect.url(ampdoc, 'https://i.ytimg.com', opt_onLayout);
}
Expand Down

0 comments on commit c6e23b1

Please sign in to comment.