Title: JS Error
Last modified: January 29, 2017

---

# JS Error

 *  [jonneh91](https://wordpress.org/support/users/jonneh91/)
 * (@jonneh91)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/)
 * I’m currently getting this error in console when loading my site
 * >  Uncaught TypeError: window.ASL.getScope is not a function
   >  at Object.window.
   > ASL.initialize (jquery.ajaxsearchlite.min.js:3) at jquery.ajaxsearchlite.min.
   > js:3 jquery.ajaxsearchlite.min.js:3 Uncaught TypeError: window.ASL.getScope
   > is not a function at Object.window.ASL.initialize (jquery.ajaxsearchlite.min.
   > js:3) at jquery.ajaxsearchlite.min.js:3
 * Please advise if possible

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

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8714859)
 * Hi!
 * Sounds like there might be either a minification issue, or the localization is
   duplicated during the minification process.
 * Try the following:
 * 1. Open up the **Compatibility Settings** submenu under Ajax Search Lite menu
   
   2. Change the JavaScript source option to ‘Minified scoped’, like so: [http://i.imgur.com/rbZmP7t.png](http://i.imgur.com/rbZmP7t.png)
   3. Save the options and try re-loading the page. Make sure to clear your cache,
   and reload by hitting CTRL + R in your browser.
 * If this does not work, then there is a good chance that the localization script
   is printed multiple times, which is might be caused by an asset minifier plugin
   or something similar. In that case the only resolution is to fix that duplication
   within the minifier plugin/process.
 * If there is a working URL where I can check the issue, I might be able to tell
   if that is the case.
 *  Thread Starter [jonneh91](https://wordpress.org/support/users/jonneh91/)
 * (@jonneh91)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8736614)
 * Hi!
 * There is no minifying plugin and the “minified scope” change did not work.
 * You can have a look at this link: [http://shoutkey.com/pea](http://shoutkey.com/pea)
 * It will take you to an intro page but you can press the menu button in the top
   left and select “home” and you will see the error as the search bar is on the
   home page.
 *  Thread Starter [jonneh91](https://wordpress.org/support/users/jonneh91/)
 * (@jonneh91)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8741768)
 * Updated link: [http://shoutkey.com/at](http://shoutkey.com/at)
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8742647)
 * Hi!
 * I’m guessing it might be related to the ajax page loading feature, at least the
   error yields at that moment.
 * Are you using any ajax page loader plugin, or was that feature part of your theme?
   I would like to replicate the issue, to see if there is anything I can do to 
   prevent it.
 *  Thread Starter [jonneh91](https://wordpress.org/support/users/jonneh91/)
 * (@jonneh91)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8742973)
 * Hi!
 * Yes, my theme heavily utilizes ajax loader and dynamic page loading as the site
   was converted to an app and this is a important for increased performance.
 *  Thread Starter [jonneh91](https://wordpress.org/support/users/jonneh91/)
 * (@jonneh91)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8794042)
 * Hello, just checking if there is any update? Thanks!

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

The topic ‘JS Error’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [jonneh91](https://wordpress.org/support/users/jonneh91/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/js-error-54/#post-8794042)
 * Status: not resolved