Title: Share widget Javascripts not loading
Last modified: August 31, 2016

---

# Share widget Javascripts not loading

 *  [allencg](https://wordpress.org/support/users/allencg/)
 * (@allencg)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/share-widget-javascripts-not-loading/)
 * Hello
 * I am using your repeater plugin for an infinitely scrolling blog listing page.
   Each blog entry has a share widget:
 *     ```
       <div class="shares">
                      <div class="addthis_sharing_toolbox" data-url="<?php the_permalink(); ?>" data-title="<?php the_title(); ?>"></div></div>
       ```
   
 * The first 6 in the listing loads these widgets fine because for those I am using`[
   ajax_load_more preloaded="true" preloaded_amount="6" ...`
 * However on the blogs after the preloaded 6 the share widgets do not load. I wonder
   if you can help or let me know if such scripts cannot be loaded at all with this
   plugin.
 * Many thanks,
 * Allen
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/share-widget-javascripts-not-loading/#post-6989487)
 * You need to initiate the Sharethis js.
 * Use the [almComplete](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/#complete)
   callback function.
 *     ```
       $(function() {
         $.fn.almComplete = function(alm){
           if (window.stButtons){
           	stButtons.locateElements();
           }
         };
       })(jQuery);
       ```
   
 *  Thread Starter [allencg](https://wordpress.org/support/users/allencg/)
 * (@allencg)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/share-widget-javascripts-not-loading/#post-6989499)
 * Many thanks for the reply.
 * The script loading the share icons is sourced offsite:
    <script type=”text/javascript”
   src=”//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54gfe9adgf2gf443e4″ async
   ></script>
 * Is the almComplete code intended to be added to inline or hosted scripts only?
   I am not sure how I include this code with this particular script.
 * Thanks,
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/share-widget-javascripts-not-loading/#post-6989500)
 * Hi,
    This should go inside a javascript file.

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

The topic ‘Share widget Javascripts not loading’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/share-widget-javascripts-not-loading/#post-6989500)
 * Status: not resolved