Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    31
    Plugin Contributions
    0

    help question Share Buttons that Won't Slow Down Page Loading?

    There are quite a few web-based services that provide Share buttons for social media sites. Examples for such services include AddThis, AddToAny, Wibiya, etc.

    They all look great but they all come with a catch: They slow down my site's page loading, because they rely on scripts running on their servers. In other words, the load on their servers (and connection) determines my site's speed...

    It seems that the solution is having the scripts run locally on my site (please correct me if I am mistaken). Do you know of Share buttons implementation (or code) that runs locally on site?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Share Buttons that Won't Slow Down Page Loading

    Scott Wilson has this solution:
    http://www.zen-cart.com/index.php?ma...roducts_id=315

    Here's another that I've used. It creates the links on the PRODUCT INFO PAGES

    Not sure who wrote the original to this one...

    It's a bit "clunky", but it does the job.

    It requires an EDIT to your tpl_product_info_display.php file.

    Create a BACKUP of that file, then call it up to edit.

    Find (at the bottom)...

    PHP Code:
    <!--bof Form close-->
    </
    form>
    <!--
    bof Form close-->
    </
    div
    Just ABOVE that, paste the following:

    PHP Code:
    <!--Zen Bookmarking Widget (HTML)-->
    <div class='zen-bookmarking'>
    <br/><font color='#289728' face='ms sans serif' size='3'><b>Share it:</b></font>
    <br/><br/>
    <!-- Delicious -->
    <a class='delicious' href="http://del.icio.us/post?url=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&title=<?php echo $products_name?>" rel='external nofollow' target='_blank' title='Add this to Delicious :&gt;'/>

    <!--DIGG-->
    <a class='digg' href="http://digg.com/submit?phase=2&url=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>" rel='external nofollow' target='_blank' title='Digg this :&gt;'/>

    <!--Stumble-->
    <a class='stumbleupon' href="http://www.stumbleupon.com/submit?url=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&title=<?php echo $products_name?>" rel='external nofollow' target='_blank' title='Stumble this :&gt;'/>

    <!-- Technorati -->
    <a class='technorati' href="http://technorati.com/faves?add=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>" rel='external nofollow' target='_blank' title='Fave this :&gt;'/>

    <!-- Twitter -->
    <a class='twitter' href="http://twitthis.com/twit?url=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&title=<?php echo $products_name?>" rel='external nofollow' target='_blank' title='Tweet this :&gt;'/>

    <!--Facebook-->
    <a class='facebook' href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&t=<?php echo $products_name?>" rel='external nofollow' target='_blank' title='Share this on Facebook :&gt;'/>

    <!-- Reddit -->
    <a class='reddit' href="http://reddit.com/submit?url=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&title=<?php echo $products_name?>" rel='external nofollow' target='_blank' title='Bookmark and tag this :&gt;'/>

    <!-- Yahoo -->
    <a class='yahoo' href="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&title=<?php echo $products_name?>" rel='external nofollow' target='_blank' title='Bookmark this :&gt;'/>

    <a class='rss' expr:href='data:blog.homepageUrl + &quot;feeds/posts/default&quot;'/>
    </div>

    <!--eof Zen Bookmark Widget-->
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Share Buttons that Won't Slow Down Page Loading

    Wibiya has a setting that forces the toolbar to load only AFTER the page content has loaded.

    We are experimenting with Wibiya and currently believe it to be better than most - including AddThis which (in our view) is the worst bolt-on for Social Networking. AddThis should NOT be used on eComm sites because of the seriously bad effect it has on page load time.
    20 years a Zencart User

 

 

Similar Threads

  1. Slow loading categories on main page!!
    By aomiri in forum General Questions
    Replies: 1
    Last Post: 20 Jul 2009, 10:34 PM
  2. Slow (or no) Page loading
    By Vinyl Signs in forum General Questions
    Replies: 9
    Last Post: 15 Sep 2007, 04:57 PM
  3. my page is loading to slow??
    By shay nissim in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jul 2007, 11:51 PM
  4. Page with many attributes loading slow
    By shawnz28 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 14 Jul 2007, 11:03 PM
  5. index page loading slow
    By sonicfreelance.com in forum Basic Configuration
    Replies: 6
    Last Post: 10 May 2006, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg