Last active
November 9, 2016 15:59
-
-
Save dededey/5170212fdb3ad6fe752d191d51f1adbf to your computer and use it in GitHub Desktop.
acf fix google maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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