• Resolved odie2

    (@odie2)


    Hi,

    I am just optimizing my website and noticed that AddToAny loads in wp_head, without js version and also from CDN.
    However I am not sure that some aren’t specially did.

    CDN, ok maybe it’s not bad, but I personally don’t like CDN, so I would remove it. An option to choose prefered way in options may be useful.

    No JS file version (I mean abc.js?ver=) – https://static.addtoany.com/menu/page.js. This is more “critical” thing that I don’t like. It should points for plugin’s or at least WP’s version, so browser won’t download it again for every time. It may be problematic with CDN, so maybe add version only for no-CDN script?

    Including script in wp_head(). If there are no need to do it for any social service need, I don’t like it. Option to choose between wp_head and wp_footer like in BJ Lazy Load would be very useful.

    Greetings

    https://www.ads-software.com/plugins/add-to-any/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    The plugin is already optimized to load the widely-cached AddToAny script asynchronously, so the current load method is perfect (and compatible with more themes, AJAX, etc.) as is.

    If you want to serve the script from your site and know exactly what you are doing, the plugin has an option to “Cache AddToAny locally with daily cache updates” under Advanced Options. Only use this option if you know how to set appropriate cache headers, etc.

    Thread Starter odie2

    (@odie2)

    Hmm, thanks.

    What about wp_head/wp_footer?
    Can it be moved to wp_footer or need to be in wp_head for certain reason?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CDN, js version and wp_footer’ is closed to new replies.