beekai-oss / react-simple-img

🌅 React lazy load images with IntersectionObserver API and Priority Hints
MIT License
989 stars 41 forks source link

fix: image classname on <noscript> img #67

Closed ScriptedAlchemy closed 5 years ago

ScriptedAlchemy commented 5 years ago

Preserve inferred class names on <noscript> images that are passed from props.

Keeps styling consistent for SSR when users/bots do not have javascript enabled.

bluebill1049 commented 5 years ago

thanks a lot :) 👍

ScriptedAlchemy commented 5 years ago

No problem, thanks for this utility. Saved me a lot of time and effort. More than happy to contribute. Smart move implementing noscript, intersection observers are not widely adopted by indexing engines yet.