Avoid render-blocking resources
Stay organized with collections
Save and categorize content based on your preferences.
Overview
This audit identifies resources (specifically scripts and stylesheets) which are
delaying the loading of ad tag libraries. These are resources that were
requested and received before ad tag libraries began loading. Reducing the
number of resources requested prior to tag load will speed up ad loading.
Recommendations
The details of this audit contain a list of all scripts and stylesheets that are
delaying tag load. The goal is to reduce the number of entries in this list as
close to 0 as possible. Some tips for doing this include:
- Loading ad tag libraries earlier in the
<head>
of the page.
- Inlining scripts and stylesheets critical to core functionality directly into
your HTML.
- Marking non-critical scripts with the
async
or defer
attributes.
- Separating styles into different files by media query and using the
media
attribute to load them only when needed.
The following ad tag library scripts are supported:
Library |
Script(s) |
AdSense |
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
pagead2.googlesyndication.com/pagead/show_ads.js
|
Google Publisher Tag |
googletagservices.com/tag/js/gpt.js
securepubads.g.doubleclick.net/tag/js/gpt.js
|
Rendering Blocking Resources
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["This audit helps identify scripts and stylesheets that slow down the loading of ad tags by being requested before them."],["Reducing the number of these resources loaded prior to ad tags can significantly improve ad loading speed."],["Optimization strategies include loading ad tags earlier, inlining critical resources, using `async` or `defer` for non-critical scripts, and separating stylesheets by media query."],["Supported ad tag libraries include AdSense and Google Publisher Tag, with specific script URLs for identification."]]],[]]