Page Performance Tips and Tools — Speed Up Your Website Today!
The speed in which your web pages load is of utmost importance to your search engine optimization, and more importantly, for your users. In this article we discuss some of the best practices for improving your web page performance, as well as tools you can use to test the performance of your site.
Approximate Read Time: 9 Minutes
UPDATE January 18, 2018: Google has announced an upcoming algorithm change for mobile search results which they have dubbed the “Speed Update.” We’ve written a post about this algorithm change and what it means for page speed.
Google in particular is obsessed with improving the performance of the web. They show this in many of their projects; from creating a new form of HTML with their AMP Project to structural enhancements to the infrastructure of the internet as a whole, they are obsessed with making web pages load faster because they know that ultimately when a user is searching the web, they want the content they are looking for delivered without a wait.
In 2010, Google added page loading speed as one of the many factors involved in ranking how web pages appear on their results. All other factors being equal, the site that reliably loads faster will show up first when ranking results.
There are a number of factors that come together to indicate the speed of your web page, and as such, keeping track of what is slowing your web pages’ load time can be a difficult task. Fortunately, there are tools available that can help identify specific aspects of your site that may contribute to perceived slowness.
Google PageSpeed Insights
One of the first tools you should use to determine how fast your site loads is Google’s PageSpeed Insights tool. This tool can analyze a web page and give you suggestions for accelerating your site for your users. It is important to note that the scores and suggestions given by the PageSpeed Insights tool are merely guidelines, and your score does not necessarily correlate with the PageSpeed Ranking factor. Nevertheless, using the PageSpeed Insights to analyze your site is an excellent first step in determining your site’s speed.
Using the PageSpeed Insights tool is easy: put the URL of a web page you want to test in the form and click on “Analyze.” Google will fetch the web page and all of the resources (images, javascript, CSS, videos, etc) necessary to render the web page, measuring how long each resource takes to load and analyze the resources. The scan can take up to a minute depending on the complexity of the web page you are analyzing, and once done you are taken to a results page in a tabbed view.
The first tab contains analysis of the web page’s performance for mobile users, and the second tab is performance for desktop users. At the top of each tab is a score between 0 and 100 and a simple description of how well the page is doing. Below this score is a list of suggestions for improving the performance of your site.
It is extremely difficult, but not impossible, to get a perfect 100 on PageSpeed Insights, and you should know that doing so will likely result in sacrificing functionality or features on your site that may be necessary for other reasons. For example, using Google Analytics JavaScript to track your traffic will lead to a decrease in your PageSpeed score (because it is cached for only two hours), but because of the way Analytics JavaScript works (it is loaded asynchronously) it has no actual impact on how fast your site is rendered to a user. Because of this, I wouldn’t recommend aiming to get a perfect score; instead focus on the substance of the suggestions Google provides.
You can find a list of the PageSpeed Insights Rules on Google’s documentation website for the tool. These rules change over time, but many of them are good suggestions in general, so I’ll cover a few of the big ones here.
Leverage Browser Caching
Expires
, Cache-Control
, and ETag
headers to the browser, you can leverage the browser’s built-in caching in a way that prevents the browser from asking for the same file repeatedly. Google recommends you use a minimum of one week for your cache expiration headers and as much as a year or more to maximize the performance for repeat visits and moving from one web page to another.
If you have to use an external JavaScript library such as jQuery, use a common repository for the library rather than hosting it locally. There are thousands of websites out there also using the same library, and if all of them point to a common URL for the library (such as Google Hosted Libraries), it increases the likelihood that the user already has the library cached before they even get to your site.
Avoid Plugins
Fortunately it is now possible to have the same level of interactivity without using a plugin at all. Video can be loaded with HTML5, and animations and interactivity can be added with Javascript, all without any third party plugins. If your website still relies on Flash, Silverlight, or Java to function, consider replacing these plugins with something native; it will help your PageSpeed score and allow mobile users to access your that content, as well.
Avoid Landing Page Redirects
Be careful when you add redirects to your site however, as it can become easy to create what are known as “redirect chains.” If at all possible, use exactly one redirect to redirect your users from the URL they landed on to the URL you want them to be on. Each redirect results in an additional round trip between your browser and the server and can significantly increase the response time for your web page.
Improve Server Response Time
There are a number of factors that can lead to an increase in server response time. If you are using a dynamic Content Management System (CMS) to manage your content, make sure you are leveraging your particular CMS’s performance recommendations on your server.
Enable Compression
Plain text, (like HTML, CSS, and JavaScript), compresses very well. For these types of content, enabling compression on your web server can reduce the bandwidth required for these files by as much as 90%, which can significantly reduce the time it takes for your content to load.
Minify Resources and Optimize Images
Images are another story. If you take a high-resolution photograph with your digital camera and then shrink it down to fit in a much smaller area on your website, the extra resolution is a waste. Even if your image is being presented as full size, it likely contains more data than it needs. Running the image through an image optimizer can significantly reduce the size without decreasing the visual quality of the image.
WebPageTest.org
Web developers and people who work on the web in general tend to have faster-than-average internet connections. This can lead to the false belief that web pages will load as fast for your viewers as they do for you. WebPageTest.org is great because you can test your site using real browsers on varying connections around the world.
The test is slow, but when it finishes you get a very real-world view of how your site loads, and you can view a timeline of when your browser started and finished downloading each resource necessary to render the page (commonly referred to by web developers as “The Waterfall”).
The suggestions and grades at the top of the results page are much simpler compared with Google PageSpeed Insights rules, but it is an easy way to get a real waterfall on a connection other than your own, and it gives you real numbers for load time.
Pingdom Website Speed Test
The tool also integrates Yahoo’s Exceptional Performance Best Practices ruleset from the YSlow browser plugin to give you a single report containing suggestions from both Google’s and Yahoo’s best practice guidelines.
Pingdom does a good job of simplifying the places where PageSpeed Insights and YSlow’s rules conflict, or where YSlow’s rules conflict with each other. For example Yahoo recommends you keep components under 25K in size, but also recommends combining smaller images together into CSS Sprites, which can take resources that were smaller than 25K and make them larger than 25K. Pingdom skips the suggestion about sprites resolving the conflict.
The important thing to remember is that the rules on all of these tools are guidelines—suggestions for ways to improve your performance—so when some rules contradict each other, you should evaluate the outcome of each and pick the solution that will result in a greater improvement in performance.
Justia Website SEO Report
If your law firm website is not with Justia, we’d be happy to provide you with a free SEO audit of your site that includes the results of tests described above and real actionable suggestions on how you can improve not only your website’s speed, but other aspects of your search engine optimization as well. To request your free website SEO report, simply fill out this request form.
Web page performance is important for your success, both in your search engine optimization to drive users to your site, and in retaining those users once they get there. Be sure the marketing organization you work with is as fanatical about web page performance as we here at Justia are.
Justia offers premium website, blogging, and online marketing solutions for law firms. We have an unparalleled record in helping law firms grow. Regardless of whether you are just starting your online marketing efforts or have a fully developed website and blog, we have solutions to help propel you to the next level. In addition to our website and blog services, we also help clients with content, lawyer directory services, social media, local SEO, and PPC Management. Contact us for more information, or call us at (888) 587-8421.