question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for SEO (no script tag)

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Alfrex92commented, May 16, 2019

it is working, thank you 😄

(I tested with NextJS)

1reaction
bluebill1049commented, May 16, 2019

react-simple-img@2.2.0 published

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found