Categories: Privacy

What is Lazy Loading and What Does it Do?

Imagine that you’re on a commute or trip and you’re scrolling through Facebook, trying to kill some time. Now imagine that a friend has pasted a link. You press a little too hard while you’re scrolling through your Facebook feed, and all of a sudden, you’re on a new page. A page filled with images — a photo gallery, maybe — that your friend thought his friends would enjoy, but when you see the first image, you decide maybe it’s not for you and you leave the page.

What is Lazy Loading?
So, what happened when you clicked on the link? Did you load the whole site that you never ended up looking at? If the site uses “lazy loading,” then no, you didn’t. Sites that eat up a lot of data — photo galleries being a good example — enable lazy loading so that they load more quickly and don’t blow all of your data if you end up not looking at them.

Read More: The Cities to Travel to with the Fastest Internet

How Does Lazy Loading Work?
Instead of downloading the entire site in one go, which would take a long time for larger sites, your device downloads a series of placeholders that correspond to the actual information on the page. The browser caches all of the site’s resources, but doesn’t actually load them; it simply knows where each one goes. If you end up scrolling through the page, the browser will begin to plug things in right before you get to them. If you’re nearing a placeholder for a picture, the browser finds that picture in its cache and slides it into place. But, if you glance at a page and decide you don’t want to read it, no harm, no foul: you’ve actually only loaded the very top of that page, the part you’ve laid eyes on.

You’ve probably seen this while online. Google’s image search, for example, uses lazy loading, with the thumbnails replacing placeholders as you scroll down the page. Scroll fast enough and you’ll see it in practice.

Lazy Loading Works for Sites and You
So, are websites just being generous, looking out for you, your data, and your time? Not exactly. While lazy loading is actually beneficial to you, it helps the sites out, too. Sites load much faster using lazy loading, which drives traffic. People will give up on a site if it takes forever to appear. If the site can entice the user quickly with the top loaded section, the user is more likely to stick around and allow the rest of the site to load. Ultimately it’s a win-win situation, and an innovative solution to sites with a lot of information.

PSafe Newsroom

The dfndr blog is an informative channel that presents exclusive content on security and privacy in the mobile and business world, with tips to keep users protected. Populated by a select group of expert reporters, the channel has a partnership with dfndr lab's security team. Together they bring you, first-notice news about attacks, scams, internet vulnerabilities, malware and everything affecting cybersecurity.

Recent Posts

Deepfakes: The New Weapon of Digital Scammers

The revolution of artificial intelligence has brought countless benefits to our daily lives — from…

56 years ago

How to identify a spy app on your smartphone

In the United States, the use of spyware apps is a growing concern, affecting mobile…

56 years ago

5 trending digital scams: how AI is making fraud more dangerous

Every day, millions of mobile phone users receive malicious links through SMS, email, or social…

56 years ago

Pix Gains Momentum Abroad: Convenience and Security for Brazilian Travelers

Travel is about new experiences — and making payments without hassle is a crucial part…

56 years ago

Malicious links: what they are and how to protect yourself

Every day, millions of  cell phone users receive malicious links via SMS, email, or social…

56 years ago

Zero Trust: what it is, why it matters, and how dfndr security protects your phone with this concept

Have you heard of Zero Trust? The term is one of the most  important trends…

56 years ago