Skip to content

A plugin to swap images depending on whether the screen is in a HiDPI (Retina) mode.

Notifications You must be signed in to change notification settings

will-in-wi/jquery.hidpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jquery.hidpi

A plugin to swap images depending on whether the screen is in a HiDPI (Retina) mode.

Downsides of this approach:

  • Requires Javascript.
  • Can't be indexed.

It is impossible in JS to stop a browser from downloading whatever is in the src attribute of an image. This method leaves the src attribute blank and sets it after javascript executes.

About

A plugin to swap images depending on whether the screen is in a HiDPI (Retina) mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published