Welcome to the Treehouse Community
Looking to learn something new?
Danny Luna5,899 Points
What's best Technique for implementing Images on website
Whats the best technique for including images on my site, not logos or icons but regular images , example images used for post, or about us sections, things like that, should I include them in the html markup, should i include them in the css , should i use sprites? Whats the best practice for optimal performance
If you are taking a performance approach then yes including images in CSS with image sprites is the way to go. But it first starts at optimizing each image, you do this manually to ensure the best quality in the real world but developers use other automated tools to compress images. The only downside is that there is some maintainability issues that come with sprites in terms of changing things and removing or re-sizing. But there are many tools out there that can help. Check out Browser Diet for a complete guide and tools.
Hope this helps