html SEO tutorial Web Development

Web Performance

Web Performance
by Marko Denic |

You should care about web performance. Web performance is important for user experience and SEO. Improving web performance increases the conversion rate. And we all want more profit, right?

I share a lot of tips on how to improve web performance. This article will be some kind of archive for them.

This article will be updated frequently, so be sure to bookmark it!

Let’s start

1. `webp` images

Use the .webp image format to make images smaller and boost the performance of your website.

           
<picture>
  <!-- load .webp image if supported -->
  <source srcset="logo.webp" type="image/webp">

  <!-- 
    Fallback if `.webp` images or <picture> tag 
    not supported by the browser.
  -->
  <img src="logo.png" alt="logo">
</picture>
           
    

2. Lazy loading of images

You can use the loading=lazy attribute to defer the loading of the image until the user scrolls to them.

           
<img src='image.jpg' loading='lazy' alt='Alternative Text'>           
    

3. Fonts requests optimizing

You can specify a text= value in your font request URL to reduce the size of the font file by up to 90%.

           
<!-- Instead of loading the whole font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Comfortaa">


<!-- 
Load only what you will use.
Super useful when you're using a web font in a logo or heading
-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Comfortaa&text=Hello">
           
    
Did you like this article? Share it with your friends:

Related articles

Person coding with a version control graph in the background

Git Cheat Sheet

A quick reference guide with the most commonly used Git commands for version control.

Read More
Black desk with a laptop, cup and some writing material

Best Websites To Get HTML/CSS Templates

This roundup will save you hours of wasted search time and license headaches.

Read More
Social Milestones

Home Page: 5 Social Milestones You Need to Conquer to Land a Sale

When you build or improve your home page, focus on these elements: Trust, Credibility, Clarity, Positioning, Results

Read More