Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Thomas MacFarlane
2,430 PointsNew picturefill.js doesn't work with SmellsLikeBakin
Looks like the way picturefill.js works is different now than when the video Flexible Images Part Two: Raster Images was made.
Just a heads up if anyone should search on this forum in regards to this:
The picturefill.js in the project files works. A new one downloaded from github will not.
2 Answers
Josh McCrary
Courses Plus Student 1,410 PointsLooked at their current example; changed my div's to span's for the DOM object, also I moved the "meta viewport..." tag in front of the scripts in the header. Now the current version works famously.
Nick Pettit
Treehouse TeacherThanks for pointing that out, Thomas MacFarlane! I've added some information about this to the teacher notes section of that video.
Thomas MacFarlane
2,430 PointsYou're welcome! :)
Thomas MacFarlane
2,430 PointsThomas MacFarlane
2,430 PointsNice! So it's now:
Why did you move the meta viewport tag? Just for syntax purposes?
Josh McCrary
Courses Plus Student 1,410 PointsJosh McCrary
Courses Plus Student 1,410 PointsJust following the example, just a lucky guess. But now, I suspect that the PictureFill script references the viewport and that a script can only access things that have been declared already, hence the meta viewport tag goes before the script.
Thomas MacFarlane
2,430 PointsThomas MacFarlane
2,430 PointsBut it works for me with the meta tag after the scripts?