Support for SEO (no script tag)
See original GitHub issueThis package is extremely easy to use and it works perfectly. But, there is one big problem it is not compatible with SEO. What is necessary to give support to SEO is a <noscript>
tag below the img.
Describe the solution you’d like
Add the no script tag below the img As an example:
<img class="lazy" src="placeholder-image.jpg" data-src="image-to-lazy-load.jpg" alt="I'm an image!">
<noscript>
<img src="image-to-lazy-load.jpg" alt="I'm an image!">
</noscript>]
Additional context Note: the ALT attribute should be also in the noscript tag
You can find more info here: Deliver search-friendly JavaScript-powered websites Lazy Loading Images and Video
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Noscript Tags. What Are They and How Do They Affect SEO?
Generally speaking, noscript tags are applied every time you need to deal with website elements that aren't displayed or are displayed ...
Read more >What Are NoScript Tags? SEO Glossary | Go Up
The NoScript tag is an invaluable tool for web developers, providing content on pages enriched with JavaScript, Java, Flash or AJAX for users...
Read more >No Script | How to use it for SEO | SEO Glossary - Yellowball
The no script element, also known as the no script tag is used to give information to users with browsers that do not...
Read more >Using noscript to optimize for SEO
I have news portal that loads posts using ajax, to get better user experience. Web crawlers don't see links and texts generated by...
Read more >Google May Drop Support For NoScript Tag For Images
Martin Splitt from Google said Google may decide to one day drop support reading the content within the noscript tag for images.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it is working, thank you 😄
(I tested with NextJS)
react-simple-img@2.2.0 published