Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The following snippet includes retina.js in your WordPress-powered website. Copy and paste the following code into your functions.php theme file.
function jg_load_retina_script()
if (!is_admin()) {
wp_register_script('retina', '//', array(), '1.0.1');
add_action('wp_footer', 'jg_load_retina_script');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.