What is Page Speed?
Page speed is often confused with "site speed," actually the page speed of the sample page views of the site. Page speed can be defined as either "page load time" (the time it takes to fully display content on a particular page) or "first byte time" (how long it takes for your browser to get the first byte of information from a web server).
You can evaluate your page speed with Google's PageSpeed Insights.
SEO Best Practices
Google has shown site speed (and as a result, page speed) by one of the symbols used by its algorithm to scale pages. And research has shown that Google may be able to accurately measure time by the first byte as it looks at page speed. Additionally, slower page speeds mean that search engines can crawl fewer pages using their shared budget, and this could jeopardize your index.
Here are some of the many ways to increase your page speed:
Enable compression
Use Gzip, a file compression software application, to reduce your CSS, HTML, and JavaScript file size by more than 150 bytes.
Minify CSS, JavaScript, and HTML
By expanding your code (including spacing, commas, and other unnecessary characters), you can greatly increase your page speed. Also delete code, formatting, and unused code. Google recommends using CSSNano and UglifyJS.
Reduce redirects
Each time a page redirects to another page, your visitor experiences extra time waiting for the HTTP request response cycle. For example, if your mobile redirect pattern looks like this: "example.com -> www.example.com -> m.example.com -> m.example.com/home," each of these two redirects causes your page to load. a little.
Remove render-blocking JavaScript
Browsers must build a DOM tree by analyzing HTML before they can submit a page. If your browser encounters a script during this process, you must stop and use it before proceeding.
Use browser save Leverage browser caching
Browsers store a lot of information (style sheets, images, JavaScript files, and more) so that when a visitor returns 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 "expired" header for how long you want that information to be cached. In most cases, unless the layout of your site changes frequently, the year is a good time. Google has more information about cache additions here.
Improve server response time
Your server response time is affected by the amount of volume you receive, the resources per page you use, the software your server uses, and the hosting solution you use. To improve your server's response time, look for performance issues such as slow data queries, emergency routes, or lack of adequate memory and fix them. The optimal server response time is less than 200ms. Learn more about making good use of your time with the first byte.
Use a content distribution network
Content distribution networks (CDNs), also called content delivery networks, are network networks used to distribute content delivery. In fact, copies of your site are stored in a wide variety of data centers, so users can quickly and reliably access your site.
Adjust Optimize images
Make sure your images are not larger than they should be, that they are in the correct file format (PNGs are usually better in less than 16 color slots while JPEGs are usually better in images) and that they are compressed by the web.
Use CSS sprites to create a template for images that you regularly use on your site such as buttons and icons. CSS sprites combine your images into one large image that uploads all at once (meaning there are fewer HTTP requests) and only shows the categories you want to display. This means you save upload time by not making users wait for more photos to be uploaded.