Subscribe now and get the latest podcast releases delivered straight to your i꧒nbox.
4 ways to improve your website load time and performancꦦe in 2020

By 168极速赛车官网: Christine Austin
Aug 1, 2020

The world moves fast.
When the new iPhone comes out, many rush to be the first to see, pඣlay, and review 🥀it.
When there’s breaking news, people are glued ꦓto their TV screens waiting for updates while reporter🥃s scramble to be the first to deliver.It’s no surprise people expect this same type of agility and speed when the💞y are browsing the web.
They want their user experience unh𒁃iꦫndered so they can effortlessly receive the information they were searching for.
The importance of website load time
Today, users have no patience for websites with poor load speeds or inadequate performancꦛe.
In a study done by , about half of web users expect a site to load in two seco𝓀nds or less. If it isn’t loaded within ꦉthree seconds, those users tend to abandon the site.
An even more alarming statistic is that 64% of shoppers who are dissatisfied with an online store’s experience and loading time will take their business ꦜelꦇsewhere.
This means you’re not only losing your currꦰent visitors and decreasing conversion rates, but you run the risk of you site loosing traffic from those customers who may have referred your website to others.
In this day, seconds make the difference. You can no longer allow your website to be bogged down by unoptimized images and files. Y𒐪our users expect your web pages to load fast, anꩲd they won’t stick around if they don’t.
With that𒈔 in mind, let’s take a look at ways to optimize your website for the best possible performance.
Related: Do we need a website redesign or a facelift?
1. Minimize HTTP requests
HTTP (Hyperte෴xt Transfer Protocol) Requests are counted whenever a browser fetches a file, page, or picture from a web server.
According to , these requests tend to take up about 80% of a webpage’s load time. The browser als☂o limits requests between 4-8 simultaneous connection♑s per domain which means loading 30+ assets at once is not an option.
This means that the more HTTP requests you need to load, the longer it take🦩s for th🦩e page to go and retrieve them all, increasing your web page’s load time.
How to decrease HTTP requests
While it seems to limit ꦇyour pages designs by keeping them simple, there are several tactics you can use to decrease HTTP requests to relieve your browser.
- Combining CSS/JS files - Rather than forcing the browser to retrieve multiple CSS or Javascript files to load, try combining your CSS files into one larger file (same for JS). While this can be challenging if your stylesheets and scripts vary from page💯 to page, managing to merge them will ultimately help your load times in the long run.
- Use queries to only load what's needed - If you find that you only need to load🐟 certain images on desktop or need to run a specific script on mo🐼bile only, using to load them can be a great way to increase speed. This way, you aren’t forcing the browser to load a variety of scripts 🌌or images that won’tඣ be useful for certain devices or viewports.
- Reduce the number of images you use - If you find some of your pages are fairly image-heavy, try removing some, 🍌especially if their file sizes are big. This may not only help reduce image H♚TTP requests but may improve your UX by removing distracting images that don’t correspond to your written content.
- CSS sprites - When applicable, combining images you use fairly♋ often across your website into one and accessing the images using CSS background-image and background-position prevents your browser from constantly trying to retrieve several images every time certain pages on your site load. This way, the browser only retrieves the one that you can u♏se multiple t🐻imes on the page by properly positioning the right image into view for each area of the page.
2. Utilize CDNs and remove unused scripts/files
More than likely, many of your users will not be i🌠n clo🦂se proximity to your web server.
Reducing this distance by spreading your content across a variety of geographically dispersed servers just isn’t a viable option, and will a bit too co💦mplicated to implement.&n🗹bsp;
This 🅘is where a conten🎃t delivery network (CDN) comes in. A CDN is a collection of web server෴s distributed across multiple locations so content can be more efficiently delivered to users.
CDNs are typically used for static content or files that do need🗹 to be touched once up𓆉loaded.
Servers are selected based upon the user's measure of network proximity. For example, the server 🅰with the quickest response time and/or fewest network 🎀hops is chosen.
Larger companies tend to own their own CDN, while medium-sized businesses wi𝓰ll use a CDN provider such as .
Smaller companies may find a CDN unnecessaꩲry or outside of their budget, so using utilizing websites such as which has a l♈ibrary of JS and CSS files and frameworks can help you prevent hosting certain files on your own servers while inc🎃reasing their load time.
If you find your company’s website could benefit from using CDNs, take this time to also evaluate youꩲr site to recognize🍃 if there are unused scripts or CSS files across your site.
While the easiest (yet most time consuming) thing is to have your developer go through your website and check ea✨ch page, there are a few tools such as ꦰwhich can remove unused styles from your website and decrease the size 🧸of your CSS file.
3. Browser caching
Browser caching allows assets on your website to be downloaded to your hard drive once into a cache, or a temporary storage space. Those files are🌺 now stored locally on your system, which allows subsequent page loads to increase in speed.
, formerly of Yahoo!, explains says that 40-60% of daily visitors to your site come in with an empty cache. So when users visit, you need to make it so the first page they see load quickly enough so they will inevitably contin൲ue through the rest of your website (with even faster load times).
Static assets﷽ have a cached lifetime of at least a week, while third party items such as w💝idgets or ads only last a day.
CSS, JS, and images, and media files should have expirations of one week, but ideally, one ye🌞ar, as any longer will viole𒁃t RFC guidelines.
You can learn more about enabling caching .
4. Compress images and optimize files
Images currently take up , around 1504KB. When compared to other pages assets such as scripts (399KB), CSS (45KB), and video (294KB), images take uღp quite a large amount of HTTP reques🐠ts sent.
As I hav🌃e mentioned early, remove any images of assets you believe you don’t ꦏneed.
This includes libraries of icons you only use two of, those extra thr൲ee f🎃onts you thought you might use but didn’t, and images that maybe could be replicated with CSS (such as colored backgrounds or gradients).
After yoꦉu clear out those assets, take a look at the images you have across your site and check out their sizes.
More often thaꦰn not, many people tend to download images from stock p💝hoto sites and upload them to their server and use them without ever bothering to optimize them for the web.
If you find yourself using large images, especially for hero images, run them through an optimization software🐷 like or .
Keep all your images below 150KB, nothing above 1920px in width, at an average/medium/72dpi quality level. Any larger and you’ll notice the images loading very late after 🌺the page renders as well as the slow response times to user behavior.
When it comes🌳 to what file extensions you should use for what, use this as a basic formula:
- SVG is suitable for vector images you want t💟⛄o receive a high amount of detail in.
- Certain icons can utilize font libraries such as to r😼ender certain graphics 👍rather than saving out individual images.
- PNG should be used for images you need transparent background behind, such as a circular image of a person or F😼acebook’s ‘F’ lo🌱go.
- JPG is best for photographs or anything where fine detail is less imp💮ortant.
While images will still take up the majority of your HTTP requests, optimizing them and your other♛ assets will ultimately keep the sizes of them down and increase your website's overall performance.
Related: How🦂 much should a ꦺwebsite strategy cost our company?
Free: Assessment