3
Aiming for the best performance in the load time of my site I wanted to make the input page banner smarter.
For screens of up to 1600px would have to be loaded a banner simpler, of lower quality and smaller side size since it doesn’t have to be bigger, but for larger screens that this I would bring a banner with more details and better resolution.
Supposing I had one <img id="banner">
how to make this move to change the src dynamically?
It’s common for that to happen on websites these days?
Media Queries believe it can solve your problem. It would only need some adaptations in your code. http://tableless.com.br/introducao-sobre-media-queries/ Practical examples: https://developers.google.com/web/fundamentals/media/images/images-in-css or http://www.smashingmagazine.com/2013/07/22/simple-responsive-images-withcss-background-images/
– Rafael Withoeft