Title: blocking the scripts
Last modified: August 22, 2016

---

# blocking the scripts

 *  [kanishk.singh45](https://wordpress.org/support/users/kanishksingh45/)
 * (@kanishksingh45)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/blocking-the-scripts/)
 * I am using newspaper theme for my news blog i.e [http://www.tecake.com](http://www.tecake.com),
   that is quite heavy to load.
    To optimize site’s performance, i had used so many
   plugins for asynchronous js,css load. My CDN also offers me the same feature.
   But the main problem is this async load is blocking scrips which is dropping 
   the feature of homepage slider and mobile theme main menu. I want to know how
   to exclude these scripts to be blocked. Currently i am using Asynchronous Java
   Script a wordpress plugin because it has a feature to exclude the scripts. Don’t
   know what to exclude. ThankYou!!
 * [https://wordpress.org/plugins/asynchronous-javascript/](https://wordpress.org/plugins/asynchronous-javascript/)

Viewing 1 replies (of 1 total)

 *  [Mpwassler](https://wordpress.org/support/users/mpwassler/)
 * (@mpwassler)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/blocking-the-scripts/#post-5394246)
 * Wrap your whole javascript file in window.onload= function (){
    Javascript goes
   here };

Viewing 1 replies (of 1 total)

The topic ‘blocking the scripts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/asynchronous-javascript_e3541a.svg)
 * [Asynchronous Javascript](https://wordpress.org/plugins/asynchronous-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/asynchronous-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/asynchronous-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/asynchronous-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/asynchronous-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/asynchronous-javascript/reviews/)

## Tags

 * [blocking](https://wordpress.org/support/topic-tag/blocking/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [java-script](https://wordpress.org/support/topic-tag/java-script/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mpwassler](https://wordpress.org/support/users/mpwassler/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/blocking-the-scripts/#post-5394246)
 * Status: not resolved