Title: Loading Script
Last modified: August 22, 2016

---

# Loading Script

 *  [dimas18](https://wordpress.org/support/users/dimas18/)
 * (@dimas18)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loading-script-1/)
 * Hello buddy, first of all, s***t 🙂 what a great plugin.
 * Well i have an issue of performance on my site, when i request a new page, i 
   have to reload an js file and another script whith your code
 * `$.fn.almComplete = function(alm){}`
 * and the js file that i have to load is this
    <script type=’text/javascript’ src
   =’[http://www.novaxd.com/wp-content/plugins/ultimate-social-deux/public/assets/js/script.js?ver=3.1.6′></script&gt](http://www.novaxd.com/wp-content/plugins/ultimate-social-deux/public/assets/js/script.js?ver=3.1.6′></script&gt);
   ive inserted this line on ajax-load-more.php outside the loop, is this good or
   bad?
 * the thing is that on web browser while i load more and more pages, i can see 
   a decreasing speed and my browser gets slower than normal.
 * can you analize something or can you give me an idea of this please,i dont want
   to remove this plugins because i really like it.
 * [http://novaxd.com](http://novaxd.com)
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loading-script-1/#post-5703944)
 * Hi, thanks!
 * So you are loading <script type=’text/javascript’ src=’[http://www.novaxd.com/wp-content/plugins/ultimate-social-deux/public/assets/js/script.js?ver=3.1.6′></script&gt](http://www.novaxd.com/wp-content/plugins/ultimate-social-deux/public/assets/js/script.js?ver=3.1.6′></script&gt);
   every time $.fn.almComplete() triggers?
 * Is there a way to load that file at the start and just call the functions in 
   that file on almComplete?
 * The site seemed pretty quick when I looked at it…
 *  Thread Starter [dimas18](https://wordpress.org/support/users/dimas18/)
 * (@dimas18)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loading-script-1/#post-5703962)
 * More or less, i had put it that code inside your ajax-load-more.php file outside
   the loop before the endwhile, and the other code on my footer file with $.fn.
   almComplete().
    The thing is that script is from a social plugin, that file is
   a piece of code of the original file, i had tried removing code by code and that
   is the code that make work that plugin when i request more posts, my knowledge
   of js is poor ,so if i have to remove the social plugin, i will, but i have to
   fight :).
 * When i request the first ajax it load 1 instance of script, then
    When i request
   the second ajax it load another instance of script,then When i request the third
   ajax it load another instance of script, and so on,
 * –if i request 20 ajax it will have 20 instances of script runing on my site or
   just one?
 * –what is the cost for the additional plugin SEO.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loading-script-1/#post-5703973)
 * Yea it appears its loading it multiple times. Let think about how to fix that…
 * $25.
 *  Thread Starter [dimas18](https://wordpress.org/support/users/dimas18/)
 * (@dimas18)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loading-script-1/#post-5703992)
 * Thanks, can be any way to make something like this.
 * if I request first ajax, it loads one instance, then if i request second ajax,
   can i remove the first instance and make a new one, is that psible?

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

The topic ‘Loading Script’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dimas18](https://wordpress.org/support/users/dimas18/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/loading-script-1/#post-5703992)
 * Status: not resolved