I'm building a web-based application that uses Google Maps. On the desktop version I plan on showing the map which shows markers for each object that is listed on the page. However, if the screen loads and the device is an iPhone for example then I don't want to show the map. The map can be hidden with CSS like so...
@media only screen and (max-width:800px){
#map{display:none}
}
However, if the screen is smaller then I don't want the data to be loaded (since it won't be displayed). Is there any way I can stop the data from loading if the device is too small using Javascript/CSS?