Skip to content

Instantly share code, notes, and snippets.

@dededey
Last active November 9, 2016 15:59
Show Gist options
  • Save dededey/5170212fdb3ad6fe752d191d51f1adbf to your computer and use it in GitHub Desktop.
Save dededey/5170212fdb3ad6fe752d191d51f1adbf to your computer and use it in GitHub Desktop.
acf fix google maps
/**
* enqueue scripts and styles
*
*/
function nr_load_scripts() {
wp_register_script('googlemaps', 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCxucarwzsej2hTS4d89VnYICal7OB6-cw',null,null,true);
wp_enqueue_script('googlemaps');
}
add_action( 'wp_enqueue_scripts', 'nr_load_scripts' );
http://matthewhorne.me/defer-async-wordpress-scripts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment