google chrome devtools - How to stop an image header from being requested when in mobile view -


so i've set image display:none using media query.

@media screen , (max-width:530px) {      img  {         display: none;     }  } 

i have tried putting image/s in parent div, setting display none. didn't work either.

<div id="right">     <img src="images/meeting.jpg" /> </div> 

but if view chrome dev tools, can see still requests it.

image

how can disable image being requested when in mobile view or specific width (using media query)

when run snippet below , check developer tools, see 100 , 200 downloaded. 300 not.

.hide {    display: none;  }
/* demo placehold images */    /* image downloaded */  <img src="http://placehold.it/100">    /* image downloaded */  <img class="hide" src="http://placehold.it/200">    /* image not downloaded */  <div class="hide">    <img src="http://placehold.it/300">  </div>


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -