Last active
December 23, 2015 05:09
-
-
Save firegoby/6584781 to your computer and use it in GitHub Desktop.
As a fallback for non-JS users simply place your best one-size-fits-all img tag inside a noscript tag inside the div. With JS switched off this behaves just like a normal img wrapped in a div
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="imager" data-src="/image/1/720/0/images/example.jpg" data-width="720"> | |
<noscript> | |
<img src="/image/1/720/0/images/example.jpg" alt="my image"/> | |
</noscript> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment