3

What is the best industry practices when it come to conditionally loading websit...

 2 years ago
source link: https://dev.to/kawhyte/what-is-the-best-industry-practices-when-it-come-to-conditionally-loading-website-data-658
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Cover image for What is the best industry practices when it come to conditionally loading website data?

What is the best industry practices when it come to conditionally loading website data?

May 25

・1 min read

Hello everyone,

I need some advice on the best industry practices when it comes to loading data to ensure that my website is performant.

I am currently working on a Travel blog that has a video in the Hero section. I only want this to load for large screens (desktop) and individuals with a fast internet connection. I want to make sure that the site experience can be accessible and enjoyable for everyone, no matter what internet speed they have.

Here is the blog - https://mtwblog.vercel.app/

Tech Stack
NextJS
Sanity CMS

What is the best solution to achieve this?

Any advice will be greatly appreciated.

Cheers!

Kenny ✌🏽 + ❤️


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK