Automatically loads high resolution versions of your images (if they exist) on high resolution displays
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 10 commits ahead of mcilvena:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
component.js
jquery.retina.js

README.md

jQuery Retina

Retina images for your website. Main differences from retinajs are:

  • You can select which images you want to retinify
  • Optionally retain original image size
  • Configurable image suffix
  • Optionally strip asset fingerprint
  • jQuery dependency

Installation

Download the zip from GitHub or install via bower:

bower install --save jquery.retina

Usage

$(window).load(function() {
	$('img.retina').retina();

	$(element).retina({
		save_size: false,
		suffix: '-some-crazy-2x-suffix',
		strip_fingerprint: true
	});
});

Authors