{"id":4006,"date":"2021-05-12T16:04:18","date_gmt":"2021-05-12T15:04:18","guid":{"rendered":"https:\/\/blogs.kent.ac.uk\/webdev\/?p=4006"},"modified":"2021-05-12T16:04:18","modified_gmt":"2021-05-12T15:04:18","slug":"a-faster-site-for-better-google-rankings","status":"publish","type":"post","link":"https:\/\/blogs.kent.ac.uk\/webdev\/2021\/05\/12\/a-faster-site-for-better-google-rankings\/","title":{"rendered":"A faster site for better Google rankings"},"content":{"rendered":"<p class=\"lead\">Google is going to change their ranking algorithm based on the quality of a web page&#8217;s experience. We&#8217;ve been looking at our our site performance and what we can do to improve it.<\/p>\n<p>Fast sites save time and make users happy. Nothing new, but Google is about to make it a lot more important.<\/p>\n<p>In June, Google is planning to change their ranking algorithm based on the <a href=\"https:\/\/developers.google.com\/search\/blog\/2020\/11\/timing-for-page-experience\">quality of a web page&#8217;s experience<\/a>. It&#8217;s not only about relevance and SEO anymore.<\/p>\n<h2>Core Web Vitals<\/h2>\n<p>Google will be using a selection of user-centric metrics, Core Web Vitals, to measure the quality of the user experience. These include the speed, responsiveness, and visual stability of a page. The metrics are:<\/p>\n<ul>\n<li><a href=\"https:\/\/web.dev\/lcp\/\">Largest Contentful Paint<\/a> &#8211; how quickly does the first above-the-fold content appear in the browser viewport? This is the perceived load speed (Largest Contentful Paint)?<\/li>\n<li><a href=\"https:\/\/web.dev\/fid\/\">First Input Delay<\/a> &#8211; how quickly does the site take to become interactive?<\/li>\n<li><a href=\"https:\/\/web.dev\/cls\/\">Cumulative Layout Shift<\/a> &#8211; how stable are the visual elements or do they shift around when interacting or loading potentially causing you to click the wrong thing?<\/li>\n<\/ul>\n<h2>How we&#8217;re doing at the moment<\/h2>\n<p>These are our performance results using <a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/insights\/\">Google PageSpeed<\/a>.<\/p>\n<p>Its data set is based on a combination of field data (data they&#8217;ve already collected over the past 28-days) and &#8216;lab data&#8217; (data that they&#8217;re testing at that moment).<\/p>\n<p>I&#8217;ve used the homepage as it represents an example of a regular showcase page, but a sample of different pages need to be tested.<\/p>\n<p>Some of the performance issues on the homepage are likely to be global elements that may affect all pages.<\/p>\n<p>For the homepage, desktop and mobile pass the Core Web Vitals test.<\/p>\n<h3>Desktop<\/h3>\n<p>We perform quite well on desktop.<\/p>\n<ul>\n<li>Largest Contentful Paint &#8211; 1.9 seconds is a &#8216;good&#8217; rating.<\/li>\n<li>First Input Delay &#8211; 5 milliseconds is a &#8216;good&#8217; rating.<\/li>\n<li>Cumulative Layout Shift &#8211; 0 is a &#8216;good&#8217; rating.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blogs.kent.ac.uk\/webdev\/files\/2021\/05\/performance-desktop.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-4019\" src=\"https:\/\/blogs.kent.ac.uk\/webdev\/files\/2021\/05\/performance-desktop.jpg\" alt=\"\" width=\"524\" height=\"580\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Mobile<\/h3>\n<p>We pass the Core Web Vitals with a &#8216;good&#8217; rating, but there are performance improvements to consider.<\/p>\n<ul>\n<li>Largest Contentful Paint &#8211; 1.9 seconds is a &#8216;good&#8217; rating.<\/li>\n<li>First Input Delay &#8211; 29 milliseconds is a &#8216;good&#8217; rating.<\/li>\n<li>Cumulative Layout Shift &#8211; 0 is a &#8216;good&#8217; rating.<\/li>\n<\/ul>\n<p>Third-party code is one area that we&#8217;re penalised on. This is often used for things like our our chat, youtube, social media and analytics.<\/p>\n<p><a href=\"https:\/\/blogs.kent.ac.uk\/webdev\/files\/2021\/05\/performance-mobile2.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-4031\" src=\"https:\/\/blogs.kent.ac.uk\/webdev\/files\/2021\/05\/performance-mobile2.jpg\" alt=\"\" width=\"558\" height=\"664\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>What we&#8217;ve been doing to improve<\/h2>\n<p>We&#8217;ve been doing various bits over time to improve performance.<\/p>\n<p>Smaller images are now served up on different breakpoints and we&#8217;re going to be loading critical css inline.<\/p>\n<p>We&#8217;re about to start using webpack. This tool can help you use fewer files to run your web applications (module bundler) making for a more efficient page which should help performance.<\/p>\n<p>We&#8217;ll also be investigating other ways to load css so that we can try get the above-the-fold content prioritised. This should improve the time it takes for the site to be perceived as interactive, which will improve our rating.<\/p>\n<p>As for heavy third-party javascript, we&#8217;ll be evaluating how it&#8217;s used and decide if we can remove some of it or deal with serving it in a different way.<\/p>\n<p>Our homepage should be okay for Google&#8217;s new ranking algorithm. We&#8217;ll be testing a broader sample of pages.<\/p>\n<p>There are many other aspects to performance, it is an ongoing part of our development. We&#8217;ll be continually evaluating and improving it.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google is going to change their ranking algorithm based on the quality of a web page&#8217;s experience. We&#8217;ve been looking at our our site performance &hellip; <a href=\"https:\/\/blogs.kent.ac.uk\/webdev\/2021\/05\/12\/a-faster-site-for-better-google-rankings\/\">Read&nbsp;more<\/a><\/p>\n","protected":false},"author":17235,"featured_media":4049,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1464,1,79395],"tags":[79485],"_links":{"self":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts\/4006"}],"collection":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/users\/17235"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/comments?post=4006"}],"version-history":[{"count":32,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts\/4006\/revisions"}],"predecessor-version":[{"id":4058,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/posts\/4006\/revisions\/4058"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/media\/4049"}],"wp:attachment":[{"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/media?parent=4006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/categories?post=4006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/webdev\/wp-json\/wp\/v2\/tags?post=4006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}