I'm actually developing a website. I have an image slider in desktop view like the example below.
<ul>
<li><src="image_1.jpg" alt=""></li>
<li><src="image_2.jpg" alt=""></li>
<li><src="image_3.jpg" alt=""></li>
</ul>
But in mobile view, i wanna display an image instead of the slider.
<img src="image_4.jpg" alt="">
I know, the simplest solution is to hidden die slider in mobile view by css. But the HTTP requests of the slider images still exists. But I don't want them. :) I need a possibility to render difficult mark up, depending on resolution/viewport.
Whats the best solution? jQuery Script? Web Components/MVC Frameworks? I don't know. I am grateful for any suggestions! :)