{"id":4840,"date":"2026-11-02T17:15:36","date_gmt":"2026-11-02T15:15:36","guid":{"rendered":"https:\/\/fastpixel.io\/?p=4840"},"modified":"2026-11-02T17:15:37","modified_gmt":"2026-11-02T15:15:37","slug":"how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps","status":"publish","type":"post","link":"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/","title":{"rendered":"How to Speed Up WordPress Pages with YouTube Videos and Google Maps"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Nobody thinks twice about pasting a YouTube link into a page. It works, it looks good, done.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then you run PageSpeed Insights and wonder why a simple contact page scores worse than your homepage. Often, the culprit is that little map at the bottom, or the video you embedded halfway down.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Embeds aren\u2019t the enemy. Loading them too early is.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#what-an-embed-really-costs\" >What an embed really costs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#is-your-iframe-already-lazy-loaded\" >Is your iframe already lazy loaded?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#facades-going-one-step-further-for-youtube\" >Facades: going one step further for YouTube<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#google-maps-needs-the-same-treatment\" >Google Maps needs the same treatment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#the-cls-trap\" >The CLS trap<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#what-to-leave-alone\" >What to leave alone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#testing-it\" >Testing it<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#let-fastpixel-handle-it\" >Let FastPixel handle it<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/fastpixel.io\/fr\/blog\/how-to-speed-up-wordpress-pages-with-youtube-videos-and-google-maps\/#faqs\" >FAQs<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"what-an-embed-really-costs\"><\/span><strong>What an embed really costs<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Under the hood, an embed is an iframe: a window into someone else\u2019s website. Your browser connects to their server and downloads whatever it sends back. You can\u2019t compress that, and you can\u2019t cache it on your side.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">YouTube typically sends scripts, styles, fonts and tracking requests. Maps sends tiles, icons and an interactive script. If the iframe loads with the page, all of that starts downloading while your visitor is still reading the first line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on how the embed is set up, that can affect all three Core Web Vitals:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>LCP<\/strong> can get slower when your main content waits behind embed files.<\/li>\n\n\n\n<li><strong>INP<\/strong> can suffer when third-party JavaScript keeps the browser busy.<\/li>\n\n\n\n<li><strong>CLS<\/strong> can jump when an iframe appears without reserved space and pushes the text down.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"is-your-iframe-already-lazy-loaded\"><\/span><strong>Is your iframe already lazy loaded?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Lazy loading means \u201cwait until it\u2019s needed.\u201d Browsers support it natively with one attribute:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">html<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;iframe src=\"https:\/\/www.youtube.com\/embed\/VIDEO_ID\" loading=\"lazy\">&lt;\/iframe><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Since WordPress 5.7, core supports it for iframes. Sounds like problem solved, right? Not always. Page builders, custom HTML blocks and pasted widget code can skip that default, so it\u2019s worth checking. View the page source, search for &lt;iframe, and see which ones are missing the attribute.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is also where a performance plugin saves you time. FastPixel lazy loads iframes automatically, YouTube and Google Maps included, so you don\u2019t have to hunt down every embed by hand. We\u2019ll come back to that below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Native lazy loading has one limit, though. When the visitor scrolls close to the embed, the full player loads, whether they press play or not.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"facades-going-one-step-further-for-youtube\"><\/span><strong>Facades: going one step further for YouTube<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A facade is a thumbnail with a play button on top. It\u2019s an image pretending to be a video, and the real player only loads on click. It\u2019s a separate technique from lazy loading, and you usually set it up with a dedicated script or plugin.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><\/td><td><strong>Standard embed<\/strong><\/td><td><strong>Native lazy load<\/strong><\/td><td><strong>Facade<\/strong><\/td><\/tr><tr><td>Loads with the page<\/td><td>Yes<\/td><td>No<\/td><td>No<\/td><\/tr><tr><td>Loads on scroll<\/td><td>n\/a<\/td><td>Yes<\/td><td>No<\/td><\/tr><tr><td>Loads on click only<\/td><td>No<\/td><td>No<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to reduce tracking cookies, you can switch to youtube-nocookie.com. That\u2019s a privacy setting, not a speed fix, and it doesn\u2019t replace proper consent handling for GDPR.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"google-maps-needs-the-same-treatment\"><\/span><strong>Google Maps needs the same treatment<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Show a static image of the location and load the real map after a click. Or at the very least, lazy load the iframe so it stays out of the way until the visitor scrolls close.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a contact page, most people want the address and maybe a quick look at where you are. A link to \u201cOpen in Google Maps\u201d is often enough.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"the-cls-trap\"><\/span><strong>The CLS trap<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s where people get burned. You lazy load the iframe, it appears late, and the page jumps because nobody reserved space for it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">css<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.video-wrapper {\n\n\u00a0\u00a0aspect-ratio: 16 \/ 9;\n\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do the same for maps. If you use a facade, make it the exact same size as the real player.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"what-to-leave-alone\"><\/span><strong>What to leave alone<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If it\u2019s visible without scrolling, think twice before lazy loading it. A hero video or a map at the very top of the page may be your LCP element, and delaying it can make things worse. For a hero video, a facade is the better option.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"testing-it\"><\/span><strong>Testing it<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open DevTools, go to the Network tab, reload without scrolling, and filter for youtube and google. If requests for the player or the map show up, that embed may be loading earlier than it should. Scroll slowly: they should appear only when you get close to the embed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then re-run PageSpeed Insights and compare the results with your earlier scores.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"let-fastpixel-handle-it\"><\/span><strong>Let FastPixel handle it<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can do all of this by hand. But then someone adds a new video next month and forgets the attribute, and you\u2019re back to square one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">FastPixel lazy loads iframes automatically, including YouTube and Google Maps. There\u2019s nothing to configure and no code to edit. Embeds below the fold load when visitors get close to them, so they stay out of the way of your main content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you also want click-to-load behavior for videos, you can add a facade on top. Lazy loading handles the baseline for every iframe on your site, and a facade is an optional extra for pages with heavy video.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"faqs\"><\/span><strong>FAQs<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Do YouTube embeds hurt SEO?<\/strong><strong><br><\/strong>Not directly. But they can slow a page down, and that may hurt your Core Web Vitals.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Is lazy loading enough, or do I need a facade?<\/strong><strong><br><\/strong>For embeds far down the page, lazy loading is a solid improvement. A facade goes further, since nothing loads until the click.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Should I lazy load every iframe?<\/strong><strong><br><\/strong>Not the ones in the first screen. Those should load normally, or use a facade for video.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Does<\/strong> <strong>youtube-nocookie.com<\/strong> <strong>make my site GDPR compliant?<\/strong><strong><br><\/strong>No. It limits some cookies, but compliance also depends on your consent setup and how you handle visitor data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Should I self-host my videos?<\/strong><strong><br><\/strong>Usually not. Self-hosting video is heavy on storage and bandwidth.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Does this work for other embeds?<\/strong><strong><br><\/strong>Yes. Vimeo, social posts and chat widgets can benefit in the same way.<\/p>","protected":false},"excerpt":{"rendered":"<p>Nobody thinks twice about pasting a YouTube link into a page. It works, it looks good, done. Then you run PageSpeed Insights and wonder why a simple contact page scores worse than your homepage. Often, the culprit is that little map at the bottom, or the video you embedded halfway down. Embeds aren\u2019t the enemy. [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":4841,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[10],"tags":[],"class_list":["post-4840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-optimization"],"blocksy_meta":[],"uagb_featured_image_src":{"full":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps.png",1500,850,false],"thumbnail":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps-150x150.png",150,150,true],"medium":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps-300x170.png",300,170,true],"medium_large":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps-768x435.png",768,435,true],"large":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps-1024x580.png",1024,580,true],"1536x1536":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps.png",1500,850,false],"2048x2048":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps.png",1500,850,false],"trp-custom-language-flag":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps-18x10.png",18,10,true],"betterdocs-category-thumb":["https:\/\/fastpixel.io\/wp-content\/uploads\/2026\/11\/How-to-Speed-Up-WordPress-Pages-with-YouTube-Videos-and-Google-Maps-360x204.png",360,204,true]},"uagb_author_info":{"display_name":"Bianca Rus","author_link":"https:\/\/fastpixel.io\/fr\/blog\/author\/bianca\/"},"uagb_comment_info":0,"uagb_excerpt":"Nobody thinks twice about pasting a YouTube link into a page. It works, it looks good, done. Then you run PageSpeed Insights and wonder why a simple contact page scores worse than your homepage. Often, the culprit is that little map at the bottom, or the video you embedded halfway down. Embeds aren\u2019t the enemy.\u2026","_links":{"self":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/posts\/4840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/comments?post=4840"}],"version-history":[{"count":1,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/posts\/4840\/revisions"}],"predecessor-version":[{"id":4842,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/posts\/4840\/revisions\/4842"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/media\/4841"}],"wp:attachment":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/media?parent=4840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/categories?post=4840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/tags?post=4840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}