Jump to content


Photo

HTML Alt img


  • Please log in to reply
1 reply to this topic

#1 ChristianC123

ChristianC123
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 July 2017 - 12:59 AM

[[ split from HTML Alt img --requinix ]]

When i seen this question ,can we use alternative image for an image.means if actual  image not load  due to slow connection or any other issue,is there any chance to load alternative image with less size.
 
Regards,
Christian

Edited by requinix, 17 July 2017 - 07:27 AM.


#2 requinix

requinix
  • Administrators
  • Forgotten Administrator
  • 8,815 posts
  • LocationWA

Posted 17 July 2017 - 07:31 AM

How do you know the connection is slow? You have to wait some amount of time and check if the image loaded. If not then you try another image? What if that's too slow? What if you interrupted the image while it's loading? You know that common image types have a special behavior for when they're being loaded slowly? You'll be throwing that away.

People with slow connections are used to stuff being slow. If you want to help out those on mobile connections then try CSS's media queries: you can load smaller images for smaller devices and larger images for larger (and presumably faster) devices.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users