{"id":206465,"date":"2023-12-21T10:30:08","date_gmt":"2023-12-21T18:30:08","guid":{"rendered":"https:\/\/www.bruceclay.com\/?p=206465"},"modified":"2023-12-21T10:30:09","modified_gmt":"2023-12-21T18:30:09","slug":"improve-website-performance-two-simple-steps","status":"publish","type":"post","link":"https:\/\/www.bruceclay.com\/blog\/improve-website-performance-two-simple-steps\/","title":{"rendered":"Improve Your Website Performance in Two Simple Steps"},"content":{"rendered":"
<\/p>\n
So you want a better-performing website. At the most basic level, you need to make sure that search engines can access the body content on a webpage as quickly as possible and that the page loads fast.<\/p>\n
That said, there are two simple SEO best practices that can help with both of those requirements, and those are:<\/p>\n
In this article, I\u2019ll explain why and give some simple steps to get started.<\/p>\n
Cascading Style Sheets (CSS) describe how HTML code should be displayed on a webpage to create the look and feel of a website, for example, fonts and colors.<\/p>\n
JavaScript is a programming language that enables interactivity on webpages, for example, a search box, audio and video, or maps.<\/p>\n
You want your website code to be search engine friendly. So, you need to be sure that the underlying code makes it easy for search engine spiders to crawl and understand what the webpages are about.<\/p>\n
This needs to happen so search engines can determine the relevance of a search query. One of the first things search engines should crawl is the body content on a webpage, not unnecessary lines of code.<\/p>\n
You also want your website to be fast. Search engines like Google care about webpage performance for user experience \u2014 so much so that they released their page experience algorithm update<\/a> with ranking signals devoted to it.<\/p>\n Both CSS and JavaScript can clutter up a webpage, make it slower to load and harder for search engines to crawl. You want the actual body content on a webpage to be accessible in the first hundred lines of code.<\/p>\n Externalizing these files is an easy way to remedy the problems I just mentioned. Doing this can speed up page load time, significantly help rankings and save crawl budget.<\/p>\n Creating an external CSS file gives you one place to control the look of the website, so it\u2019s much more efficient than editing every single page of a website when you want to make a change.<\/p>\n When you have a CSS file, you only need to make changes to the external file and those changes are applied to the entire site.<\/p>\n Having an external CSS file has other benefits, too. It allows you to remove inline formatting, such as font tags, and replace them with CSS tags that instruct what style to apply. This results in less code cluttering the webpage.<\/p>\n Less code means smaller file sizes. Smaller file sizes mean web pages load faster.<\/p>\n Creating an external file for JavaScript has similar benefits. When you move the JavaScript off individual webpages and into an external file, your webpages only need a single line of code that calls the JavaScript file for information.<\/p>\n JavaScript tends to be long and cumbersome, so doing this one simple thing could cut the size of a webpage in half.<\/p>\n It\u2019s easy to check if your CSS and JavaScript is externalized. Go to your website homepage and look at the source code. To view the source, right-click on the page and select: \u201cview page source.\u201d<\/p>\nBenefits of Externalizing CSS<\/h3>\n
Benefits of Externalizing JavaScript<\/h3>\n
<\/a>Is Your JavaScript and CSS Externalized Already?<\/h2>\n