Skip to content

Commit

Permalink
Remove preconnect to Google Fonts since not on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Mar 26, 2024
1 parent 79d88b3 commit 7638aba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions extensions/amp-youtube/0.1/amp-youtube.js
Original file line number Diff line number Diff line change
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 for the font used in the title text (which is the LCP element).
preconnect.url(ampdoc, 'https://fonts.gstatic.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 7638aba

Please sign in to comment.