Why Lazy Loading Is Essential for Your Website in 2024

Lazy loading – It’s one of those website optimisation techniques that doesn’t get the spotlight it deserves. But it can seriously transform how your site performs! Making it a simple, effective way to make your website faster and more user-friendly. Which ultimately keeps visitors around longer and boosts your conversions.

If you’re not using lazy loading in 2024, you’re leaving performance on the table. Let’s break it down.

What Is Lazy Loading?

Lazy loading is exactly what it sounds like. The content on your web pages (like images or videos) don’t load straight away when the page is accessed. Instead, they load lazily—only when the user scrolls to them or they come into the viewport.

Imagine you’re reading an article on a site. As you scroll down, the images further down the page won’t load until they’re about to appear on the screen. This keeps the initial load time fast and smooth. By delaying the loading of certain elements you’re only showing what’s needed in that moment.

This makes everything faster and more efficient which your website users love!

Why Does Lazy Loading Matter?

Lazy loading isn’t just a fun party trick – It’s a vital tool for improving website performance and user experience. Here’s why it matters:

1. Faster Load Times

Let’s be real: no one likes waiting around for a website to load. If your site is slow, people bounce, plain and simple. Lazy loading can help reduce initial load times, which means users get what they want faster.

  • Why It Works: By delaying the loading of non-essential elements, you’re cutting down on the amount of data that has to be processed upfront. This makes pages load faster and improves overall performance.
  • What It Means for You: A faster site means better user experience, lower bounce rates, and potentially higher conversion rates.

2. Saves Bandwidth

Lazy loading isn’t just great for speed; it’s also smart about data usage. This is particularly helpful for users on mobile networks or slower connections. Why load a dozen high-resolution images when the user might only see two?

  • Why It Works: By loading elements only when they’re needed, lazy loading saves users from downloading unnecessary data, reducing bandwidth consumption.
  • What It Means for You: Lower bandwidth usage can be a big win, especially if you’re running an e-commerce site with lots of product images or a blog with high-quality visuals.
Blue optic fiber with ethernet cables and laptop
Image from Freepik.

3. Improved SEO and Rankings

Google loves fast websites, and lazy loading can help with that. Since site speed is a key factor in Google’s ranking algorithm, a faster site can mean better rankings in search results. Plus, improved user experience and lower bounce rates are factors that Google’s algorithm considers.

  • Why It Works: Search engines favour sites that load quickly and deliver a good user experience. Lazy loading helps you achieve both by cutting down on the initial load time and keeping users engaged.
  • What It Means for You: Faster sites rank better, and better rankings mean more visibility, clicks, and conversions.

4. Better Mobile Performance

Over half of all web traffic comes from mobile devices, which makes mobile performance non-negotiable in 2024. Slow-loading sites don’t just annoy users—they also don’t rank as well on Google’s mobile-first index. Lazy loading ensures your mobile site loads quickly and efficiently.

  • Why It Works: By only loading images and videos when they’re needed, you reduce the load time and data usage for mobile users, improving their experience.
  • What It Means for You: A faster, more mobile-friendly site keeps users around longer and encourages them to engage with your content.
Different mobile layouts for Blank Canvas's website for their real estate photography and marketing services
Blank Canvas – Real estate photography, videography, and marketing agency in Auckland, New Zealand.

How do I Implement Lazy Loading On My Website?

Alright, so lazy loading is awesome. But how do you actually make it happen on your site? Here’s how you can implement lazy loading, whether you’re a tech novice or a pro developer:

1. Use the “Loading” Attribute for Images

This is one of the easiest ways to add lazy loading to your site. The loading=”lazy” attribute can be added directly to image tags in your HTML, which tells the browser to load the image only when it’s about to be visible in the viewport.

  • Why It Works: This method is straightforward, requires minimal coding, and is supported by most modern browsers.
  • Pro Tip: Use it for large images, infographics, or product photos to enhance loading speed without compromising on quality.

2. Use JavaScript Libraries

If you’re dealing with more complex elements, like videos, iframes, or background images, you might need to use a JavaScript library for lazy loading. Libraries like LazyLoad or Lozad.js make it easy to set up lazy loading across your site.

  • Why It Works: These libraries allow you to customise how elements load, making it easier to handle more complicated layouts.
  • Pro Tip: If you’re using a CMS like WordPress, there are plenty of plugins (e.g., WP Rocket, Lazy Load by WP Rocket) that can add lazy loading without needing to touch a line of code.

3. Use Lazy Loading for Videos

Videos are heavy. They eat up bandwidth and slow down load times. Lazy loading can fix that by loading videos only when they’re in view.

How to Do It:

  • Use a placeholder image or thumbnail until the user interacts with the video.
  • Embed the video using the iframe tag with lazy loading attributes or a JavaScript library that supports video lazy loading.

  • Why It Works: Users won’t have to deal with laggy pages, especially if you’ve got videos embedded all over your site.
  • Pro Tip: Use lower-resolution thumbnails to save on initial load times, then load the full-resolution video when it’s needed.

4. Implement Lazy Loading for Background Images

If you’ve got large background images that load right away, they can be a huge drag on speed. Instead, consider using lazy loading techniques, like dynamically loading background images with JavaScript.

How to Do It:

  • Use a CSS class to display a placeholder until the actual background image is needed.
  • Replace the placeholder with the real background image using JavaScript as the user scrolls.

  • Why It Works: This prevents massive images from slowing down your site before they’re needed.
  • Pro Tip: Make sure your placeholder has a similar aspect ratio to the original image to avoid layout shifts when the image loads.
A custom designed photography portfolio website for Daniell Ledger
A custom designed photography portfolio website for Daniell Ledger that uses Lazy Loading.

When Should I Use Lazy Loading?

Lazy loading is ideal for websites with heavy visuals, lots of embedded videos, or pages that require scrolling to view all content. However, it’s not for everything:

  • Use it for: Large images, videos, infographics, embedded media, background images, and content below the fold.
  • Avoid it for: Above-the-fold content, like hero images or crucial calls-to-action, which should load immediately for the best user experience.

Common Myths About Lazy Loading

1. It’s Complicated to Implement

Nope, it’s actually pretty straightforward. Adding a simple loading=”lazy” attribute or using a plugin can have a big impact without requiring major code changes.

2. It Hurts SEO

This one’s a myth. Lazy loading can actually boost your SEO because faster load times improve user experience and site performance, both of which Google loves.

3. It’s Only for Images

While lazy loading is most commonly used for images, it’s effective for videos, iframes, and even background images. Basically, if it’s big and takes time to load, it can benefit from lazy loading.

Conclusion

Lazy loading is one of the simplest ways to improve website speed, boost user experience, and increase conversions. In 2024, it’s no longer just a good idea – it’s a must for any site looking to stay competitive. Implementing lazy loading is easier than you think, and the benefits are immediate. So, don’t wait. Get started today and see the difference for yourself.

Cloudflare Boosts Web Speeds With Predictive Site Loading

Introduction

As the demand for faster, more secure browsing continues to grow, Cloudflare has stepped up with major advancements in web performance technology. Their new suite of tools—including Speed Brain, Zstandard compression, and Encrypted Client Hello (ECH)—is designed to deliver faster, more seamless experiences for everyday users while also protecting privacy.

With internet speeds becoming a key competitive factor for businesses, Cloudflare’s latest offerings not only benefit web developers and site owners but also drastically improve user experiences. Here’s a deeper look at how these innovations are set to change the way we browse the internet.

Speed Brain: Anticipating Your Next Click

A brain icon overtop of a internet browser within a circle

At the heart of Cloudflare’s new offerings is Speed Brain, a predictive site-loading feature that makes use of the Speculation Rules API. In essence, Speed Brain is designed to anticipate a user’s next action—such as clicking on a specific link—and preload content before the user even makes the request. This allows websites to load much faster, making the browsing experience feel more fluid and intuitive.

For example, imagine you’re browsing an e-commerce site and have clicked into the “Men’s Clothing” section. As you move your cursor toward the “Shirts” category, Speed Brain begins prefetching content like images and product details for the shirts page. When you finally click, the page appears almost instantly. This preemptive loading has been shown to reduce page load times by as much as 45%.

This technology aligns with a broader trend toward predictive computing, where devices and systems try to anticipate user behavior. According to a 2021 report by McKinsey & Company (The Next Frontier in AI: Predictive Analytics), predictive analytics and AI are transforming industries, from healthcare to finance, with a focus on making processes more efficient. By applying this logic to web browsing, Cloudflare is improving not only speed but also user engagement—an essential metric for businesses that depend on smooth customer interactions.

What makes Speed Brain particularly effective is its conservative approach to prefetching, triggered only when a user hovers over or clicks a link. This ensures resources aren’t wasted, a critical consideration for mobile data and energy-conscious users.

Zstandard Compression: Revolutionizing Web Speed and Data Efficiency

Zstandard icon logo and text

Alongside Speed Brain, Cloudflare has introduced Zstandard compression (zstd), an advanced algorithm that speeds up data transfer by compressing web files faster than existing technologies like Brotli or GZIP. Compression plays a huge role in web performance by reducing the size of the files that need to be transmitted, especially on data-heavy pages like those filled with images or large scripts.

According to Cloudflare, Zstandard compresses data 42% faster than Brotli while maintaining nearly the same compression ratios. For web users, this means sites will load more quickly, especially on mobile devices or in areas with slower internet speeds. In fact, zstd can compress files up to 11.3% better than GZIP, a widely used standard. This not only improves speed but also reduces bandwidth usage, which is increasingly important as more businesses and users rely on cloud-based services.

A 2022 study by Akamai Technologies (Impact of Page Speed on User Experience and Conversions) found that reducing page size by just 100KB could lead to double-digit percentage improvements in load times. Zstandard’s ability to shrink file sizes without sacrificing performance will be particularly beneficial for industries like e-commerce and media, where heavy data loads can slow down user experiences.

Encrypted Client Hello (ECH): The Future of Internet Privacy

Two internet users travelling through an online cloud with security badges shown over top of an internet browser

Cloudflare’s commitment to speed goes hand-in-hand with their focus on privacy, and the rollout of Encrypted Client Hello (ECH) is a significant step forward in web security. Traditionally, when a user visits a website, certain information—such as the site’s name—is exposed during the TLS (Transport Layer Security) handshake, which establishes a secure connection between the user and the website. This can leave users vulnerable, especially when connected to public or untrusted networks.

ECH addresses this vulnerability by encrypting the Server Name Indication (SNI), which is usually visible during the TLS handshake. By masking this information, ECH prevents intermediaries such as ISPs, network administrators, or malicious actors from knowing which websites a user is visiting. According to a 2021 report by Mozilla (TLS Encryption and ECH: Securing the Future of Web Privacy), ECH is expected to play a key role in the future of secure web browsing, especially as users become more aware of the privacy implications of their online activity.

This privacy-enhancing feature is already enabled by default for free Cloudflare users, while Pro, Business, and Enterprise customers can manually activate it. ECH provides enhanced security without sacrificing performance, ensuring that users enjoy both speed and privacy. This is especially important in regions where internet censorship or surveillance is more prevalent, as it helps protect users’ browsing habits from being monitored.

The Bigger Picture: Why These Innovations Matter

These advancements come at a time when web performance and user privacy are critical competitive factors for businesses. According to a 2023 study by Google (The Importance of Page Load Speed in User Engagement), websites that load within two seconds have a bounce rate of 9%, while those that take five seconds to load have a bounce rate of 38%. The difference is staggering, and Cloudflare’s innovations can play a significant role in helping businesses retain visitors and improve conversions.

Moreover, privacy concerns are at an all-time high. The introduction of General Data Protection Regulation (GDPR) in Europe and similar laws in other regions means businesses are now legally required to protect user data. Technologies like ECH offer a competitive advantage by enhancing user trust and complying with evolving privacy standards.

Conclusion: Faster, Smarter, and Safer Web Experiences

Cloudflare’s latest advancements are a win for both businesses and everyday internet users. By combining speed enhancements like Speed Brain and Zstandard compression with privacy-focused innovations like ECH, Cloudflare is setting a new standard for web performance and security. For businesses, this means not only faster load times and improved user engagement but also enhanced trust among privacy-conscious consumers.

As the web becomes more complex and users demand faster, more private experiences, innovations like these will be essential for staying ahead in the digital landscape. Whether you’re running a high-traffic e-commerce site or managing a local blog, these technologies offer tangible benefits that can boost your online presence and build a more resilient, user-friendly website.

Choosing the Right CMS Software for Your Website

Selecting the right Content Management System (CMS) for your website is a crucial decision that can impact your site’s performance, scalability, and ease of management. With a variety of options available, it’s essential to choose one that aligns with your needs—whether you’re building a simple blog or a complex e-commerce platform.

In this guide, we’ll explore 8 CMS options, from traditional choices to modern, headless solutions, helping you find the right fit for your project.

1. WordPress

WordPress Website CMS UI Dashboard
(WordPress Website CMS UI Dashboard)

When people think of CMS, WordPress is usually the first name that comes to mind, and for good reason. Launched in 2003 as a simple blogging platform, WordPress has grown into a powerhouse that now supports over 40% of websites on the internet. Its evolution has made it one of the most versatile tools, capable of managing everything from personal blogs to robust e-commerce stores and even large-scale corporate websites. With a huge library of plugins and themes, plus a user-friendly interface, WordPress allows both beginners and seasoned developers to build beautiful, functional sites with ease.

However, WordPress isn’t just for the non-tech crowd. Its open-source nature means developers can dig deep into the code to customize the platform however they see fit, offering tremendous flexibility. But with such popularity comes challenges—especially with security and performance. Despite this, it’s hard to deny WordPress’s staying power and its potential to create almost any type of site.

Pros

  • User-friendly: Non-developers can manage content with ease.
  • Extensive plugin ecosystem: Thousands of plugins allow customization without coding.
  • Large community: Extensive resources and community support.

Cons

  • Security: Due to its popularity, it’s a frequent target for hackers.
  • Speed: Plugins and themes can slow down your site if not managed well.
  • Customization limitations: Custom development can be cumbersome if you’re not familiar with PHP.

2. Drupal

Drupal Website Content Management System UI Dashboard
(Drupal Website CMS UI Dashboard)

Drupal is a veteran in the CMS world, known for its robustness and ability to handle complex, high-traffic websites. While it might not have the mainstream appeal of WordPress, Drupal is a favorite among developers who appreciate its flexibility and power. It’s especially well-suited for large, data-driven sites that require heavy customization, advanced security, or integration with other systems. In fact, many government and educational websites use Drupal due to its emphasis on security and scalability.

What sets Drupal apart is its flexibility. Developers have complete control over every aspect of the site, from content management to design, which makes it perfect for large-scale applications. However, this comes with a catch—Drupal’s steep learning curve can be intimidating for beginners. It’s a CMS that tends to be more developer-centric, so if you’re not comfortable with code, it may not be the easiest platform to manage.

Pros

  • Highly customizable: Perfect for websites that need complex workflows, user permissions, and custom content types.
  • Strong security: Often chosen for websites that prioritize data security, like government or enterprise sites.
  • Scalable: Can handle massive websites with high traffic and complex data structures.

Cons

  • Steep learning curve: Not ideal for users without technical knowledge or a dedicated development team.
  • Resource-intensive: Running a high-performance Drupal site can require significant server resources and maintenance.

3. Joomla

Joomla Website CMS UI Dashboard
(Joomla Website CMS UI Dashboard)

Joomla is like the middle child of the CMS world—somewhere between WordPress’s ease of use and Drupal’s power and complexity. It’s an open-source platform that can serve a wide variety of purposes, from simple blogs to complex business directories and e-commerce sites. Joomla is often praised for offering a balance of user-friendliness and advanced functionality, making it a solid choice for both beginners and developers alike.

While not as popular as WordPress, Joomla has a loyal user base and an active developer community that contributes extensions and plugins to enhance the platform. It has built-in multilingual support, advanced user management, and powerful content management features right out of the box. This makes it a great option if you need more flexibility than WordPress but aren’t quite ready to dive into something as complex as Drupal.

Pros

  • Flexible and customizable: Great for websites that need a mix of ease and custom features.
  • Multilingual support: Built-in language features make creating multilingual websites easier.
  • Strong user management: Excellent for sites that require multiple user roles and permissions.

Cons

  • Fewer themes and plugins: While it has a decent selection, Joomla’s library isn’t as extensive as WordPress’s.
  • Requires some technical knowledge: It’s not quite as beginner-friendly, especially for users who want to customize beyond the basics.

4. Shopify

Shopify Website Content Management Software UI Dashboard
(Shopify Website CMS UI Dashboard)

If your primary goal is to build an online store, Shopify is one of the best CMS options out there. It’s designed specifically for e-commerce, meaning everything from the design to the backend is optimized to help you sell products quickly and easily. Shopify takes care of all the technical details, like hosting and security, so you can focus on growing your business without worrying about the backend infrastructure.

Shopify stands out because it’s not just a CMS—it’s an entire e-commerce ecosystem. You can manage products, payments, shipping, and inventory all in one place. Plus, with a wide array of themes and apps, you can customize your store’s appearance and functionality to suit your brand. However, these features come at a cost, and the monthly fees—plus additional transaction fees—can add up for larger stores.

Pros

  • E-commerce focused: Everything you need to run an online store is built in.
  • All-in-one platform: Shopify handles hosting, security, and software updates for you.
  • Great for non-technical users: You can set up a store quickly, even without coding experience.

Cons

  • Recurring costs: Monthly fees and transaction fees can get expensive.
  • Limited customization: While easy to use, it’s not as flexible as open-source platforms like WordPress or Magento.
  • Vendor lock-in: You’re dependent on Shopify’s infrastructure, which can make switching platforms more challenging.

5. Strapi

Strapi Website CMS UI Dashboard
(Strapi Website CMS UI Dashboard)

Strapi is one of the rising stars in the CMS world, particularly in the headless CMS category. A headless CMS allows developers to decouple the front-end presentation from the backend content management, giving them the flexibility to deliver content to any platform or device—whether it’s a website, mobile app, or IoT device. Strapi is built with modern developers in mind, using JavaScript, and it’s entirely open-source.

One of Strapi’s biggest selling points is its flexibility. It’s designed to work seamlessly with modern front-end frameworks like React, Vue, and Angular, giving developers full control over how their content is delivered and displayed. While Strapi provides an admin panel for content managers, its real power lies in the custom APIs you can create, making it perfect for projects that require dynamic, omnichannel content.

Pros

  • Headless architecture: Freedom to design custom frontends and deliver content across multiple platforms.
  • Highly customizable APIs: You can create custom APIs to serve your exact content needs.
  • JavaScript-based: Built with JavaScript and designed for developers familiar with modern frameworks like React or Vue.

Cons

  • Not ideal for non-technical users: Strapi’s headless nature means it requires a developer to set up and maintain.
  • Hosting and server management: Unlike SaaS CMS options, you’ll need to manage your own hosting and infrastructure.

6. Payload CMS

Payload Website CMS UI Dashboard
(Payload Website CMS UI Dashboard)

Payload CMS is a newer entrant in the CMS space, but it’s quickly gaining attention among developers who want full control over both the frontend and backend of their web applications. Built with Node.js and React, Payload offers a fully customizable, self-hosted headless CMS that’s tailored for modern web development workflows. Whether you’re building websites, web apps, or even mobile apps, Payload’s flexibility lets you create a tailored API that fits your needs.

Designed to be developer-first, Payload is perfect for those who are comfortable managing their own infrastructure and want to build something truly unique. It’s not just a CMS—it’s more like a framework for building content-driven applications.

Pros

  • Modern tech stack: Built using Node.js and React, ideal for developers familiar with these technologies.
  • Full control over data: Every aspect of the data structure and API is customizable.
  • Headless and API-driven: Perfect for building custom applications or websites with complete freedom over the frontend.

Cons

  • Steeper learning curve: Requires technical knowledge to set up and maintain.
  • Self-hosted: You’ll need to manage your own hosting and infrastructure, which can add complexity and cost. Unless you decided to use Payloads hosting service which can be expensive

7. Webflow

Webflow Website Content Management Software UI Dashboard
(Webflow Website CMS UI Dashboard)

Webflow is a modern CMS platform that bridges the gap between designers, developers, and content creators. It’s an all-in-one platform where you can visually design, manage content, and publish your website without needing to write code. What makes Webflow unique is its ability to offer complete design control, making it an excellent choice for designers who want to create custom, responsive websites without being constrained by templates.

With Webflow, you’re not just managing content but also designing your site visually while the platform generates clean, semantic code in the background. It’s highly favored by agencies and freelance designers who want flexibility and control over their designs but don’t want to deal with the technicalities of code. On top of that, Webflow includes powerful CMS capabilities, allowing users to create dynamic content, manage databases, and more—all while using a sleek visual interface.

Pros

  • Visual design interface: Allows you to design a website visually, while generating clean code behind the scenes.
  • Responsive design: Automatically creates responsive websites that look good on all devices.
  • Great for designers: Combines the ease of visual design tools with the power of a full CMS, without requiring coding.

Cons

  • Steep learning curve: Webflow’s robust design features can be overwhelming for beginners.
  • Pricing: It can be more expensive compared to traditional CMS options, especially if you need advanced features like CMS hosting and eCommerce.

8. Sanity

Sanity Website CMS UI Dashboard
(Sanity Website CMS UI Dashboard)

Sanity is another strong contender in the headless CMS category, offering real-time collaboration features that set it apart from other platforms. It’s designed to be highly flexible, allowing you to define your content structure however you like, while also providing a live preview feature so editors can see how content will look before it goes live. This makes it a fantastic choice for teams that need to work together on content in real-time.

Sanity is also API-first, which means developers have full control over how content is delivered and displayed across different platforms. Whether you’re building a website, mobile app, or something else entirely, Sanity’s flexibility and collaboration tools make it a popular choice for teams working on complex projects.

Pros

  • Real-time collaboration: Editors can work together on content in real-time, which is great for teams.
  • Highly flexible: Allows for full customization of content models and structures.
  • Headless CMS: Ideal for delivering content to multiple platforms and devices.

Cons

  • Requires technical knowledge: Not the best choice for non-developers or those looking for an out-of-the-box solution.
  • Cost can add up: While Sanity offers a free tier, the cost can rise quickly with more complex projects and higher content needs.

Conclusion

Choosing the right CMS depends on your project’s specific requirements, whether you need a simple blogging platform, a flexible headless CMS, or a robust e-commerce solution. For small businesses and non-technical users, platforms like WordPress or Shopify are great options. On the other hand, developers looking for modern, headless architectures may find Strapi or Payload better suited to their needs.

Whichever CMS you choose, be sure to weigh the pros and cons, as well as the long-term scalability and support available for each option.

If you want a hand or to find out more, you can contact Builtflat here.

iOS 16 enables web push notifications

iOS 16 was announced today at WWDC 2022 with several new features, including a completely redesigned lock screen with widgets and enhancements to several system apps. Specifically speaking about Safari, Apple’s web browser will now support web push notifications, extension syncing, and more with the update.

One of the biggest complaints about the iOS version of Safari is that it lacks push notifications for web apps, so websites are unable to notify a user if they’re running Safari in the background – although this is already possible on the Mac.

With iOS 16, the wait for this feature is finally over. Developers can push web applications even further, by notifying their users with important information, directly to their devices. This has been a feature that developers have been longing for, as it gives them the ability to really push what a web application is capable of, instead of relying on native phone applications.

Apple says the feature will come in 2023 with a future update of iOS 16, so it won’t be available at launch. At least the company has now finally confirmed that it is working on web push notifications.

Developers can now download the first beta of iOS 16 via the Apple Developer website. A public beta version will be available next month with the official release expected this fall.