Use a content distribution networkĬontent distribution networks (CDNs), also called content delivery networks, are networks of servers that are used to distribute the load of delivering content. Learn more about optimizing your time to first byte. The optimal server response time is under 200ms. 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. 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. Google has more information about leveraging caching here. In many cases, unless your site design changes frequently, a year is a reasonable time period. Then set your "expires" header for how long you want that information to be cached. Use a tool like YSlow to see if you already have an expiration date set for your cache. Leverage browser cachingīrowsers 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. Google suggests avoiding and minimizing the use of blocking JavaScript. If your browser encounters a script during this process, it has to stop and execute it before it can continue. Remove render-blocking JavaScriptīrowsers have to build a DOM tree by parsing HTML before they can render a page. each of those two additional redirects makes your page load slower. For example, if your mobile redirect pattern looks like this: -> -> m. -> m./home Reduce redirectsĮach time a page redirects to another page, your visitor faces additional time waiting for the HTTP request-response cycle to complete. Google recommends using CSSNano and UglifyJS. Also remove code comments, formatting, and unused code. Minify CSS, JavaScript, and HTMLīy optimizing your code (including removing spaces, commas, and other unnecessary characters), you can dramatically increase your page speed. Instead, compress these in a program like Photoshop where you can retain control over the quality of the image. 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.ĭo not use gzip on image files. Here are some of the many ways to reduce your page speed load time: Enable compression Longer load times have also been shown to negatively affect conversions. Pages with a longer load time tend to have higher bounce rates and lower average time on page. Page speed is also important to user experience. 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. And research has shown that Google might be specifically measuring time to first byte as when it considers page speed. Google has indicated that site speed (and as a result, page speed) is one of the signals used by its algorithm to rank pages.
0 Comments
Leave a Reply. |