Google Page Speed still giving render blocking issue even after loading resources async
Data Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.
Introduction
Adding async to a script does not guarantee that PageSpeed will stop reporting render-blocking resources. The audit is about the critical rendering path, and scripts are only one part of it. CSS, fonts, execution timing, and third-party code can still delay the first paint.
Why async does not always solve it
async changes when a script runs, but it does not make the script free. An async script downloads in parallel, then executes as soon as it finishes. If that happens while the browser is still parsing the page, parsing pauses so the script can run.
For scripts that touch the DOM or depend on document order, defer is often the better choice:
Deferred scripts download in parallel but wait until HTML parsing is complete before they execute. That usually reduces interference with the first render.
CSS is often the real render blocker
Even if all scripts are async or deferred, external stylesheets still block rendering because the browser wants CSSOM data before painting the page correctly.
If the initial page only needs a small amount of styling, inline the critical CSS and load the full stylesheet non-blockingly:
That approach reduces blocking work before the first paint. Use it carefully, because shipping too much inline CSS hurts caching and can make HTML heavier.
Third-party resources still count
PageSpeed frequently points to:
- analytics scripts
- tag managers
- ad networks
- font provider stylesheets
- widget bundles
Even if these are marked async, they may inject more resources, request blocking CSS, or run long tasks on the main thread. A common example is loading web fonts through a stylesheet that delays text rendering.
A cleaner font setup can help:
Also make sure your @font-face rules use font-display: swap in your stylesheet.
Measure the whole critical path
When PageSpeed still complains, inspect the waterfall in Lighthouse or WebPageTest. Look for:
- stylesheets in the document head
- async scripts that finish early and execute before parsing completes
- large JavaScript bundles that monopolize the main thread
- third-party resources that inject additional blocking assets
The fix is often architectural rather than attribute-based. In many pages, splitting one large bundle, delaying non-critical widgets, and inlining only above-the-fold CSS has more impact than changing async to defer alone.
A safer baseline pattern
If you want a strong default for many server-rendered pages, this is a better starting point than marking every script async:
Then load non-essential widgets after the page becomes interactive:
Common Pitfalls
- Assuming
asyncis always better thandefer. It often is not for application code. - Focusing on scripts while leaving blocking stylesheets untouched.
- Ignoring third-party tags that inject more blocking resources after page load starts.
- Inlining too much CSS and making the HTML response large and uncacheable.
- Treating a PageSpeed warning as a literal parser block when the real issue is main-thread work or a long critical request chain.
Summary
- '
asynccan still interrupt parsing when the script finishes downloading.' - '
deferis usually a better default for ordered application scripts.' - CSS and font-loading patterns are common reasons PageSpeed still reports render-blocking work.
- Third-party tags can reintroduce blocking even after your own scripts are optimized.
- Use Lighthouse or WebPageTest waterfalls to identify the real blocker before changing markup blindly.
Related reading
- Google Play app description formatting
- GPU based algorithm on AWS Lambda
- GPU only being used 1-5 Tensorflow-gpu and Keras
- GPU PoolAllocator explodes the CPU memory
- Grasping the Node JS alternative to multithreading
- Green Threads vs Non Green Threads
- GPU utilization mostly 0 during training
- Grab a segment of an array in Java without creating a new array on heap
System design interview problems on this topic
- Design a Distributed Locking System: solution and walkthrough
- Design a Distributed Counter: solution and walkthrough
- Design Ticketmaster: solution and walkthrough
- Design a Flash Sale System: solution and walkthrough

DSA Fundamentals
Master algorithmic patterns and data structures through hands-on LeetCode-style problems - from arrays and hashing to dynamic programming and advanced graphs.
View the courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.