I'm trying to use picturefill for my website but neither version seems to work.
In my head of the page:
<script src="js/picturefill.js"></script>
I have two images, welcome.jpg for the larger image and welcome_sm.jpg for the smaller:
<span data-picture data-alt="Welcome to Novus Landscapes">
<span data-src="images/welcome_sm.jpg"></span>
<span data-src="images/welcome.jpg" data-media="(min-width: 58em)"></span>
<noscript>
<img src="images/welcome_sm.jpg" alt="Welcome to Novus Landscapes">
</noscript>
</span>
Do I need to do anything else to get it to work? I don't see anything since Javascript is enabled on my browsers which of course eliminates the fallback due to the noscript tag.
What am I doing wrong?
My website is novuslandscapes dot com
Thanks,
John
There's a few things you need to do.
Read or watch here
Place the script at the bottom of your html, just before
</body>
Try this syntax, copied from here