Title: Load script asynchronously or defer?
Last modified: August 30, 2016

---

# Load script asynchronously or defer?

 *  Resolved [emmett.malone](https://wordpress.org/support/users/emmettmalone/)
 * (@emmettmalone)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/load-script-asynchronously-or-defer/)
 * When using this plugin, it’s adding a render-blocking script to my site on all
   the pages: [http://www.google.com/jsapi?ver=4.2.2](http://www.google.com/jsapi?ver=4.2.2)
 * Is there anyway to load this asynchronously or defer it?
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/load-script-asynchronously-or-defer/#post-6283856)
 * You can try to [dequeue](https://codex.wordpress.org/Function_Reference/wp_dequeue_script)
   and then re-[enqueue](https://codex.wordpress.org/Function_Reference/wp_enqueue_script)
   that script later, if you want, but AFAIK there is no WordPress core function
   that permits `async` loading of enqueued scripts. If I’m wrong about that please
   do point me to a working example. 🙂 A quick search turned up [this guide](https://thecustomizewindows.com/2014/04/defer-parsing-javascript-wordpress-snippets-plugins/)
   about how to target an enqueued script for deferment.

Viewing 1 replies (of 1 total)

The topic ‘Load script asynchronously or defer?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/load-script-asynchronously-or-defer/#post-6283856)
 * Status: resolved