DEV Community

tkpranav
tkpranav

Posted on • Originally published at Medium on

Speed up your image heavy website…

Speed up your image heavy website.

1. Resize your image

<img src="image.jpg" alt="full size image" width="200" height="200"/>

<img src="resized\_200x200\_image.jpg" alt="resized image"/>

2. Optimize your image

JPG , PNG and GIF are the most common image formats being used currently

on the web. There is another relatively new image format called WebP that

combines the best of these image formats.

3. Build for mobile

Data suggests that almost 60% of the global traffic originates from mobile

devices. With responsive image tags, using the ‘ srcset ’ and the ‘ sizes

attributes of the img tag

4. Load fewer resources

Use lazy loading for your images. Lazy loading basically means that we

defer loading of images that are not required immediately.

5. Use a good CDN for image delivery


Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay