1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Why does AddThis load on all my XenForo pages?

Discussion in 'XenForo Questions and Support' started by Lone Wolf, Jun 4, 2015.

  1. Lone Wolf

    Lone Wolf Well-Known Member

    I use AddThis on my forum and it's useful on Threads. I prefer it to the Share This Page options. I have the AddThis option enabled on my ACP as well with the unique AddThis ID.

    However I've noticed that AddThis is loading on my homepage, my forums list and on my forum pages as well. There's no AddThis implementation on those pages so I dont know why that's happening. It's slowing down the load of the pages.

    Below are some examples of what's happening. Is this a XenForo default if I fill in the AddThis ID?

    Home Page


    Forum List


    Forum View

  2. Mike

    Mike XenForo Developer Staff Member

    It's something that you (or your style) added:
    <!-- Go to www.addthis.com/dashboard to customize your tools -->
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-xxxxxx" async="async"></script>
    Lone Wolf likes this.
  3. Lone Wolf

    Lone Wolf Well-Known Member

    Thank you Mike, we've put that into a conditional and now it only loads on thread pages.

    On the same subject, I've noticed on thread pages that addThis loads several times and sometimes waits for a long period with 0 bytes transferred. Is there a way to streamline it so fewer addTHis requests are made and none of them are for 0 bytes?

    Below is an example of how many times addTHis loads on thread view...


    Does it need to load that many times and any advice on the two 0 byte loads highlighted which are causing long loading delays?
  4. Mike

    Mike XenForo Developer Staff Member

    In Chrome itself, I see it listed as being triggered twice, but by the same line of source, so it may be a display bug due to the async declaration on it. The third reference is coming from the AddThis code itself. So I don't think you really have any control over this.

Share This Page