SEO Agency Dublin

Website Speed for SEO: Render-Blocking JavaScript, Compression and More

SA
SEO Agency Dublin21 November 2026 ยท 6 min read

A slow page usually comes down to a few fixes: stop scripts from blocking the first paint, compress text files with Brotli or gzip, serve smaller images, minify CSS and JavaScript, and put static files on a CDN. Then check the result in PageSpeed Insights and the Core Web Vitals report in Google Search Console.

Last updated: 21 November 2026

Why speed matters for SEO

Google uses Core Web Vitals as part of its page experience signals. They measure what a real visitor feels:

  • Largest Contentful Paint (LCP): how quickly the main content appears.
  • Interaction to Next Paint (INP): how quickly the page reacts to a tap or click. INP replaced First Input Delay (FID) as a Core Web Vital in March 2024.
  • Cumulative Layout Shift (CLS): how much the layout jumps around while it loads.

Google's own thresholds for a "good" score are on web.dev. Speed will not lift a page that does not answer the search, but on two similar pages the faster one gives people fewer reasons to leave, and a slow site can be crawled less often.

Fix render-blocking JavaScript

When the browser meets a normal <script> tag in the <head>, it stops building the page until that script has downloaded and run. Large or slow scripts there delay everything the visitor sees.

  • Use defer for scripts that need the page to be ready. They download while the HTML is parsed and run in order once it is done.
  • Use async for independent scripts such as analytics. They run as soon as they arrive, in no fixed order.
  • Move or remove third-party scripts you no longer use: old chat widgets, tracking pixels and social embeds are common culprits.
  • Split large bundles so each page loads only the code it needs, and load the rest later.
  • Render the main content on the server where your framework allows it, so search engines and visitors see the text without waiting for JavaScript.

To find the scripts at fault, run Lighthouse in Chrome DevTools and look at the "Eliminate render-blocking resources" audit, or open the Coverage tab to see how much of each file is unused.

Turn on text compression (Brotli or gzip)

Compression shrinks HTML, CSS and JavaScript before they are sent, and the browser unpacks them on arrival. It is lossless, so nothing changes on the page.

  1. Choose Brotli first, with gzip as the fallback for clients that do not support it. Brotli usually produces smaller files for text.
  2. Switch it on in your web server settings, your hosting control panel or your CDN. Many hosts and CDNs already do it by default, so check before you change anything.
  3. Check it works: in Chrome DevTools, open the Network tab, click a CSS or JS file and look for content-encoding: br or gzip in the response headers. PageSpeed Insights also flags files that are sent uncompressed.
  4. Do not compress images and video this way. Formats like JPEG, WebP and MP4 are already compressed; shrink those with the image steps below.

Serve smaller images

  • Use WebP or AVIF for photos, and SVG for logos and icons.
  • Resize before you upload. A 4,000 pixel wide photo shown in a 600 pixel column wastes data. Use srcset so phones get a smaller file.
  • Compress with a tool such as Squoosh or TinyPNG, or let your platform do it on upload.
  • Set width and height on every image so the layout does not jump while it loads (this helps CLS).
  • Lazy-load images below the fold with loading="lazy", but never the main image at the top of the page, as that slows LCP.

Minify CSS and JavaScript

Minifying strips spaces, comments and unused code without changing what the file does. Most modern build tools, including Vite, webpack and Next.js, minify by default in a production build, so check yours is on. For other setups, CSSNano handles CSS and Terser or esbuild handle JavaScript. Keep the readable source in your repository and ship only the minified files, then test the live page afterwards in case something broke.

Use a CDN and browser caching

A content delivery network stores copies of your images, CSS and JavaScript on servers in many locations, so a visitor in Dublin is not waiting on a server in another continent. Cloudflare, Fastly, Bunny.net and Amazon CloudFront all offer this.

  • Set Cache-Control headers so browsers keep static files and do not download them again on the next visit. Long cache times suit files whose names change when they are updated.
  • Purge the CDN cache after you deploy changes, or use versioned file names so new files are picked up straight away.
  • Keep HTTPS on end to end. Most CDNs include a free certificate.

Cut server response time

If the first byte takes a long time to arrive, nothing else can start. Common fixes are better hosting, page caching on the server, fewer redirects in a row and faster database queries. On WordPress, a caching plugin and removing unused plugins often make the biggest difference.

How to check your speed

  • PageSpeed Insights: shows lab results for one URL and, where Google has enough data, field data from real Chrome users.
  • Search Console, Core Web Vitals report: groups your URLs into Good, Needs improvement and Poor for mobile and desktop, using real visitor data.
  • Lighthouse in Chrome DevTools: runs the same audits locally, which is handy before you publish a change.
  • WebPageTest: shows a waterfall of every file the page loads, useful for spotting one slow script or image.

Field data updates over a rolling 28 days, so give a fix a few weeks before you judge it.

Getting a second pair of eyes

Speed is one part of technical SEO. A Dublin SEO audit checks Core Web Vitals alongside indexing, crawl errors and on-page issues, and gives you the fixes in priority order. If you have a question about your own site, get in touch.

SEO Agency Dublin

๐Ÿš€ Dominate Local Search & Grow Your Business

SEO Agency Dublin helps local businesses rank higher, attract leads, and outrank competitors.

๐Ÿ“žCall Now: +353 83 122 7553
๐Ÿ“งEmail Us: contact@seoagencydublin.ie
๐ŸŒClaim Your Free SEO Audit: seoagencydublin.ie/contact

Don't let competitors steal your customers. Let's turn your website into a lead magnet.

Claim your free SEO audit โ†’

Ready to grow?

Let's boost your rankings

Get a free consultation and find out how our SEO strategies can help your business grow.

Free consultation