Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    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; 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

    (@dimas18)

    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

    (@dcooney)

    Yea it appears its loading it multiple times. Let think about how to fix that…

    $25.

    Thread Starter dimas18

    (@dimas18)

    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.