Ideally, I would recommend using Responsive Images method, then if it doesn't work, PictureFill method.
WP has support for Responsive Images and this plugin handles this nicely by adding the retina images in the src-set created by WordPress.
Functions wr2x get retina from url return URL of the image wr2x get retina return the path of the image ...
Actions wr2x retina file added called when new retina file is created, 1st argument is $attachment id and second is the $retina filepath wr2x retina file removed called when new retina file is removed, 1st argument is $attachment id and second is the $retina filepath...
Browse the code, check out SVN repository, or subscribe to the development log by RSS... 5.4.0.
Add The Generate button will now also Re-Generate the thumbnails as well.
Update Added the info screen in Retina Dashboard in Media Library as well and improved UI tiny bit . 4.5.8.
Update Ignore Responsive Images support if ID is not existent .. 4.4.0.
Add Filter and default filter to avoid certain IMG SRC to be checked parsed by the plugin while rendering.. 3.4.2.
Add Retina Dashboard and Media Library's column can be disabled via the settings..
Read more