Page Speed: How to evaluate and improve page speed
What is page speed?
Page speed is a measurement of how fast the content on your page loads.
Page speed is often confused with "site speed," which is actually the page speed for a sample of page views on a site. Page speed can be described in either "page load time" (the time it takes to fully display the content on a specific page) or "time to first byte" (how long it takes for your browser to receive the first byte of information from the webserver).
You can evaluate your page speed with Google's PageSpeed Insights. PageSpeed Insights Speed Score incorporates data from CrUX (Chrome User Experience Report) and reports on two important speed metrics: First Contentful Paint (FCP) and DOMContentLoaded (DCL).
Is page speed a ranking factor?
Google has indicated that site speed (and as a result, page speed) is one of the signals used by its algorithm to rank pages. And research has shown that Google might be specifically measuring time to first byte as when it considers page speed. In addition, a slow page speed means that search engines can crawl fewer pages using their allocated crawl budget, and this could negatively affect your indexation.
A slow website not only impacts SEO but also user experience. Pages with a longer load time tend to have higher bounce rates and lower average time on page. Longer load times have also been shown to negatively affect conversions.
Evaluating page speed
Evaluating page speed involves analyzing various metrics to determine the performance of a webpage. The most common metrics used to evaluate page speed include:
- Page load time: The time it takes for a webpage to load and become fully interactive.
- Server response time: The time it takes for a server to respond to a request from a user’s browser.
- Core web vitals: A set of metrics that measure the performance of a webpage, including largest contentful paint (LCP), first input delay (FID), and cumulative layout shift (CLS).
By evaluating these metrics, website owners can identify areas for improvement and optimize their webpage for better performance. This can involve optimizing images, minifying code, leveraging browser caching, and improving server response time.
Page load time metrics
Page load time metrics provide insights into the performance of a webpage. The most common page load time metrics include:
- Time to first byte (TTFB): The time it takes for a server to respond to a request from a user’s browser.
- First contentful paint (FCP): The time it takes for the first content to be painted on the screen.
- Largest contentful paint (LCP): The time it takes for the largest content element to be painted on the screen.
- First input delay (FID): The time it takes for a user to interact with a webpage after it has loaded.
By analyzing these metrics, website owners can identify areas for improvement and optimize their webpage for better performance.
SEO best practices to improve page speed
Here are some of the many ways to reduce your page speed load time:
Enable compression
Use Gzip, a software application for file compression, to reduce the size of your CSS, HTML, and JavaScript files that are larger than 150 bytes.
Do not use gzip on image files. Instead, compress these in a program like Photoshop where you can retain control over the quality of the image. See "Optimize images" below.
Minify CSS, JavaScript, and HTML
By optimizing your code (including removing spaces, commas, and other unnecessary characters), you can dramatically increase your page speed. Also remove code comments, formatting, and unused code. Google recommends using CSSNano and UglifyJS.
Reduce redirects
Each time a page redirects to another page, your visitor faces additional time waiting for the HTTP request-response cycle to complete. For example, if your mobile redirect pattern looks like this:
example.com -> www.example.com -> m.example.com -> m.example.com/home
...each of those two additional redirects makes your page load slower.
Remove render-blocking JavaScript
Browsers have to build a DOM tree by parsing HTML before they can render a page. If your browser encounters a script during this process, it has to stop and execute it before it can continue.
Google suggests avoiding and minimizing the use of blocking JavaScript.
Leverage browser caching
Browsers cache a lot of information (stylesheets, images, JavaScript files, and more) so that when a visitor comes back to your site, the browser doesn't have to reload the entire page. Use a tool like YSlow to see if you already have an expiration date set for your cache. Then set your "expires" header for how long you want that information to be cached. In many cases, unless your site design changes frequently, a year is a reasonable time period. Google has more information about leveraging caching here.
Improve server response time
Your server response time is affected by the amount of traffic you receive, the resources each page uses, the software your server uses, and the hosting solution you use. To improve your server response time, look for performance bottlenecks like slow database queries, slow routing, or a lack of adequate memory and fix them. The optimal server response time is under 200ms. Learn more about optimizing your time to first byte.
Use a content distribution network
Content distribution networks (CDNs), also called content delivery networks, are networks of servers that are used to distribute the load of delivering content. Essentially, copies of your site are stored at multiple, geographically diverse data centers so that users have faster and more reliable access to your site, ensuring that pages load faster.
Optimize images for better performance
Be sure that your images are no larger than they need to be, that they are in the right file format (PNGs are generally better for graphics with fewer than 16 colors while JPEGs are generally better for photographs) and that they are compressed for the web.
Use CSS sprites to create a template for images that you use frequently on your site like buttons and icons. CSS sprites combine your images into one large image that loads all at once (which means fewer HTTP requests) and then display only the sections that you want to show. This means that you are saving load time by not making users wait for multiple images to load.
Continuous monitoring and improvement
Continuous monitoring and improvement are critical to maintaining optimal page speed. Website owners should regularly monitor their webpage’s performance using tools like Google PageSpeed Insights, Semrush Site Audit, and Pingdom Website Speed Test. These tools provide insights into page load time, server response time, and core web vitals, and offer recommendations for improvement.
By continuously monitoring and improving page speed, website owners can ensure that their webpage is always optimized for better performance, user experience, and SEO. This can involve regularly updating code, optimizing images, and improving server response time.
Updated by Chima Mmeje — November 18, 2024.
Identify slow-loading pages with Moz Pro
Moz Pro's Site Crawl helps you find and fix critical technical issues, like slow-loading pages. Take a free 30-day trial and see what you can achieve:
Keep learning
- Core Web Vitals - What are they and why do they matter to Google?
- Performance Metrics: Opportunities & Diagnostics
- Technical SEO Certification - Moz Academy
- Google Developers Documentation: Page Speed Rules
- Optimizing Page Speed - Actionable Tips For SEOs and Web Developers
- PageSpeed - Get browser extensions from Google for both Firefox and Chrome to help you identify issues that are slowing down your site.
- YSlow - This Firefox add-on features a grading system to help you quickly see how well your site is performing and offer insight on how to improve your site speed. It needs to be used in conjunction with Firebug.
- WebPageTest.org - Get a quick report of how a page is performing.
Additional Articles on On-Site SEO
What Are On-Page SEO Factors?Title Tag
What Are Meta Descriptions and How to Write Them
Show More