---
title: "The Most Important Details That Slow Down a Website's Performance"
description: "What are the most important details that slow down your website's performance? Learn about factors such as site speed, image size and quality, and excessive CSS and JavaScript use, and increase your site's speed. Discover more with Faprika."
url: https://www.faprika.com/en/blog/the-most-important-details-that-slow-down
language: en
site: Faprika
---

# The Most Important Details That Slow Down a Website's Performance

> What are the most important details that slow down your website's performance? Learn about factors such as site speed, image size and quality, and excessive CSS and JavaScript use, and increase your site's speed. Discover more with Faprika.

For an internet user, nothing is more frustrating than a slow website. As a website owner, it is your job to speed up your website's performance and reduce or eliminate that frustration.

Everyone knows that slow page loading hurts traffic. You have probably heard that 40 percent of visitors will leave a website that takes longer than 3 seconds to load. For mobile users, though, the numbers are even worse. [Google studies](https://www.thinkwithgoogle.com/intl/en-154/insights-inspiration/research-data/need-mobile-speed-how-mobile-latency-impacts-publisher-revenue/) show that if pages take longer than 3 seconds to load, 53 percent of visits are likely to be abandoned.

It is clear that speed is no longer a luxury but a necessity. You should ask yourself, “How can I speed up my website?” Before making any changes, assess your site speed and use it as a baseline for later measurements. Test after each change to determine which of the methods outlined here brings you the most success.

## **Images**

The basic rule for images is this: never serve an image larger than necessary. Given the many different screen sizes or viewports your website's visitors are likely to use, this is a simple rule that is hard to follow. When we talk about images, size means not only pixel dimensions but also the file size, which is governed by image quality. Here are some ways to go about it:

- Create multiple versions (sizes) of each image. These are used together with code to detect the viewport size and serve appropriately sized images, so you don't send a 3000-pixel image to a handheld device or a 200-pixel image to a Retina screen.
- Try different image formats, such as Google's .webp or scalable .svg files for logos.
- Lazy loading is a method of preventing images (and certain other elements) that are not currently visible in the browser from loading. For example, in a long article full of images from top to bottom, images shown later in the article that are not needed for the initial browser window will not be loaded on the first page load. Implementing lazy loading on your website is not the simplest task, but if you run an image-heavy website, you should definitely consider it. If you use WordPress on your website, there are lazy loading plugins you can use (such as a3 Lazy Load).

## **Content Delivery Networks (CDN)**

CDNs were developed to reduce the distance between the server and the user. A CDN is a global network of servers that delivers content to website visitors based on where they are located. In the simplest terms, you upload a file, the CDN copies it to multiple servers, and when a visitor comes to your website, the CDN determines which server is closest to the visitor and delivers the files from there. So instead of your friend in California viewing your site files from Ankara, they can load them from a server in Europe, at less than half the distance.

As CDNs have grown and expanded, more servers have become close to larger parts of the population. You can see how a CDN would save time with files like images (and some can even resize images automatically on the fly!), but they can also help with the other asset files we mentioned.

## **Caching**

A sure way to fight a slow website is to cache files. Caching is the temporary storage of website files in a visitor's browser (or on a visitor's computer). Local storage means the same file does not have to be requested from the server on every page load. So if your site uses a single CSS file, the visitor downloads the file once, and for every page load after that, the file is retrieved from the local cache, making page rendering much faster.

## **Assets and Scripts**

Once rare players in the web world, JavaScript and Cascading Style Sheets (CSS) are now essential tools used by the vast majority of websites. You would struggle to build even the simplest modern website without both JavaScript and CSS. Yet the causes of slow website loading can often be traced back to the use of these files.

The problem is that JavaScript and CSS are “render-blocking resources,” meaning HTML parsing stops while the JavaScript and CSS load. So when the parser reaches a tag, it pauses to fetch and execute the script, then continues loading the HTML. You can see where this could potentially cause a performance problem (and why it is best to avoid inline CSS wherever possible).
