jQuery plugin that blows your visitors' retinas
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Fix for issue #3. Nov 18, 2014
test Clean up Zepto test. Jun 11, 2013
.gitattributes Ignore some files from exports. Dec 29, 2013
.gitignore LF. Dec 13, 2013
.travis.yml LF. Dec 13, 2013
CHANGELOG.md LF. Dec 13, 2013
Gruntfile.js Enable strict mode in Gruntfile too. Dec 29, 2013
bower.json Update bower.json. Dec 13, 2013
dense.jquery.json Version numbers. Dec 13, 2013



Homepage | Issues | Build Status

Dense is a jQuery plugin for serving retina-ready, high pixel ratio images with ease. Small, ease-to-adapt, yet very customizable and works cross-browser. With Dense, your content images get support for data-ratiox attributes and Apple's retina image naming convention.


Download package or using Bower:

$ bower install dense


Using Dense is simple. Include the plugin and initialize its method:

<script src="jquery.js"></script>
<script src="dense.js"></script>

For more instructions and options see the documentation.


Dense uses Grunt to run tasks. First make sure that you have all base dependencies installed by running npm in the repository's directory:

$ cd dense
$ npm install

After you have installed all dependencies, you will be able to run tasks using Grunt, like releasing, building, publishing and testing:

$ grunt [task]

Where the [task] is one of test, build, jsdoc or release. Tasks jsdoc and release:[major|minor|patch] require Java in addition to the Node.js due to the use of JSDoc3.