Title: Async JS?
Last modified: August 21, 2016

---

# Async JS?

 *  Resolved [Grzegorz.Janoszka](https://wordpress.org/support/users/grzegorzjanoszka/)
 * (@grzegorzjanoszka)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/async-js/)
 * Hi,
 * First of all – thanks for the great plugin.
    I have installed a plugin Speed 
   Boster Pack, which moved almost all js that it is not blocking. Only the js from
   top 10 is blocking the render I using Google PageSpeed Insights and it shows:
 * Remove render-blocking JavaScript:
 *  [http://paleosmak.pl/….php?top_ten_id=1445&activate_counter=11](http://paleosmak.pl/….php?top_ten_id=1445&activate_counter=11)
 * Is there a way to have that js not render-blocking? That would be awesome.
    Thank
   you in advance!
 * [https://wordpress.org/plugins/top-10/](https://wordpress.org/plugins/top-10/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/async-js/#post-5051415)
 * Hi,
 * You can add the `async` attribute to the script tags in top-10.php by modifying
   [line 72](https://plugins.trac.wordpress.org/browser/top-10/trunk/top-10.php#L72)
 * [https://developers.google.com/speed/docs/insights/BlockingJS](https://developers.google.com/speed/docs/insights/BlockingJS)
 *     ```
       $output = '<script type="text/javascript" async src="'.$tptn_url.'/top-10-addcount.js.php?top_ten_id='.$id.'&activate_counter='.$activate_counter.'"></script>';
       ```
   
 *  Thread Starter [Grzegorz.Janoszka](https://wordpress.org/support/users/grzegorzjanoszka/)
 * (@grzegorzjanoszka)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/async-js/#post-5051519)
 * It works, it counts the visitors and Google doesn’t complain. Awesome plugin 
   and even better support. Is there any chance to have the async option configurable
   within the plugin?
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/async-js/#post-5051628)
 * I was thinking of making the async support by default. It’s definitely better
   for page loading.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Async JS?’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/async-js/#post-5051628)
 * Status: resolved