Is it possible to stop loading some images from a mobile device? What is a jQuery plugin already?
For example: I do not want to load all the images "toobig" by a mobile device.
Thank you for your patience.
I do not think the way to stop from loading them, but You can easily change the attributes of those elements to try to load the Change browser: Find the above relevant images, gives them Finally, to call
$ ('img.toobig') .attr ({ 'Width': 0, 'height': 0, 'src': 'path / to / small / image.png'}) .hide (); height and width of 0 (hence the layout engine You can quickly refill / refug the document, and give a small transparent image file, ideally, to a src . Of course, you just click removeAttr ('src'). , if you prefer. hide () is to make sure that, 0 With size, someone here In the case of remove () , instead, it can be used.
Comments
Post a Comment