Search results for:
Table of Contents
If your website is loading slowly, there could be several reasons causing the delay in your load times. A site that's loading slow or not running very smoothly can not only be frustrating, but it can also have a devastating effect if your site is business-related. Visitors can get frustrated and leave, quite possibly never come back. A slow site will also not rank very well on search engines, either.
Determining the root cause of the problem is something that needs to be done quickly. Some of the most common reasons for websites running slow are as follows:
cPanel offers you the ability to Optimize your website. Once you are logged in to cPanel, you can elect to use the Optimize Website found in the Software section. This setting changes mod_deflate usage by Apache only, and you can choose to compress all content or specific MIME types. For PHP scripts, you may also choose to enable zlib.output_compression through the Multi-PHP Editor to enable this feature. After enabling this feature, it is important to measure the results of your page load times.
The key factors to causing a web page to load quickly are generally all related to optimizing the programming and code of the site itself rather than any server configuration options. The first step is to ensure that you have all the latest updates, as these can contain important updates. Many tools on the web can help you identify which website elements are causing the biggest slowdowns. Two tools you can use are Pingdom's Website Speed Test Tool and GTMetrix Website Analyzer. Both tools provide insights into which server requests or files are causing the largest problems and some general advice on how to resolve them. This article will use results from Pingdom as examples. Some of the best ways to speed up your site code are as follows:
If you want to show off pictures or images on your website, the suggested way to store these is to have them only be as big as they need to be. For example, if you're using a picture for a 100 x 100 px profile image, it is best to save that picture on the server at 100 x 100 px; if you save the picture as 1000 x 1000 px, the server will take longer to not only upload the image to the page but also resize the image and compress it down to fit. It's advised to have many sizes for each picture saved, with thumbnail versions used more often than full-sized images.
This website only loads 13 files, but it takes over 11 seconds to load the page because it's using huge images! Adjusting the size of the pictures to be only as big as the site will display them, or even changing the file format from .PNG to .JPEG could save considerable load times, especially on sites with many images per page.
Having plugins can make your website really stand out, but having too many plugins can cause more problems than necessary. Only install and use plugins you are actively using, limiting your plugins to as few as your site can get away with. If possible, get around using plugins altogether (Example: the Google Analytics plugin – instead, add the tracking code to your website footer manually).
This website is loading dozens and dozens of WordPress plugins, and each of those plugins has multiple files they need to load as well. Pingdom has rated the load times associated with these plugins as an F with a score of 0, which means they are definitely slowing things down. We recommend trimming plugins that are not used often or aren't necessary for the site. Another trick is to see another, a faster plugin that will replace a slower plugin or even replace more than one plugin at a time.
Every time your code references an external script, additional server resources and time must fulfill the request. As with Plugins, try and use external scripts as sparingly as possible, and if able, try to include the snippets of code directly into your website code.
This website spends over 8 seconds loading a special font from an external source, dramatically slowing down the web page. This can be fixed by downloading the fonts to the local website folders. Since this website relies on another website to supply the fonts, if the other website is slow, has a bad connection, or goes down, this website is affected.
On the left is a website loading up a normal CSS file, and it takes 0.456 seconds to load just this file! On the right is a CSS file that has been minified, and it's ten times faster at 0.047 seconds! It may seem like a small change, but it could mean the difference between 5.0 seconds and half of a second in load times if your site loads multiple CSS files.
For more detailed tips and tricks to speed up your website and the page loading speeds, review our handy Tips and Tricks to Faster Websites guide.
Written by Hostwinds Team / December 13, 2016