Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noscript part #5

Closed
macik opened this issue May 22, 2013 · 2 comments
Closed

noscript part #5

macik opened this issue May 22, 2013 · 2 comments

Comments

@macik
Copy link

macik commented May 22, 2013

Is it right?

<noscript>
  <img src="bg.png" data-src="img1.jpg" />
</noscript> 

As I mention it loads bg.png instead of actual img1.jpg.

@bsdonaldson
Copy link

To use the no script tag, you'll have to duplicate your code as such. Since the javascript is disabled you'll have to use the actual src for the no script version.

<noscript>
    <img src="img1.jpg" />
</noscript>

So the final code would look something like this

<img src="bg.png" data-src="img1.jpg" />

<noscript>
    <img src="img1.jpg" />
</noscript>

@luis-almeida
Copy link
Owner

What @BrianSDonaldson said is correct.
There was an error in the documentation but it has been fixed already.
Sorry for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants