Comments (7)
Another thing I get tired to say to the front-end teams I work with is to load the alternative image (which is shown only at mouseover) only at mouseover.
You can read more best practices on how to load images on a repo I’ve recently created.
https://github.com/verlok/productListingPageBestPractices/
What do you think?
from front-end-performance-checklist.
You're welcome @verlok and thank you so much for the work! I totally agree with you, it's indeed not specified but should be in the Checklist. Do you want to do a PR?
Thanks to point that out!
from front-end-performance-checklist.
Sure! Will do. I just wanted to know what you think about that before doing that.
from front-end-performance-checklist.
Hi @verlok, I was reviewing your previous message and I was wondering why on mouseover and not on scrolling?
from front-end-performance-checklist.
In most e-commerce websites e.g. yoox.com and others there is an alternative shot shown at mouseover, showing the cloth weared by a model.
My point is: don’t load those alternative images at page landing, but load them lazily when the user requests them, mouseover-ing the product.
If you take a look at this repo and the related live demo, it will all be clear.
from front-end-performance-checklist.
And now we got native lazy loading (sorry if it's already in the checklist / mentioned anywhere
https://addyosmani.com/blog/lazy-loading/
from front-end-performance-checklist.
@Brunomaio it’s not a thing yet. Native lazyloading will come with Chrome 75 and only under a flag.
Anyway, my vanilla-lazyload script already supports native lazyloading, so you can use the LazyLoad script to do native lazyloading where supported, and JavaScript lazyloading where not supported.
Read this for more information:
https://www.andreaverlicchi.eu/native-lazy-loading-with-vanilla-lazyload/
from front-end-performance-checklist.
Related Issues (20)
- Japanese translation HOT 14
- Turkish Translate HOT 2
- Online earning
- Polish translation HOT 1
- Question: do you take reference updates? HOT 2
- Persian Translate
- ScaleYourCode links are not available
- Flag Vietnamese (translate) not correct HOT 2
- New tool to add to the list of Performance tools HOT 2
- Image elements do not have explicit width and height HOT 2
- Include the updated Brazilian Portuguese translation (out)
- Italian translation HOT 1
- ScaleYourCode links are not available - II HOT 2
- DNS preanalyze HOT 3
- Incomplete sentence in Images Format section HOT 2
- "Avoid having your website using HTTPS and serve files coming from source using HTTP." is not good perf advice HOT 1
- Remove closing slash on void tags HOT 5
- update project description HOT 2
- Vietnamese Version HOT 1
- README: dead images HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from front-end-performance-checklist.