Forums / Templates, Stylesheets, Page Layout / Share Buttons that Won't Slow Down Page Loading?

Share Buttons that Won't Slow Down Page Loading?

Views: 1,667

Results 1 to 3 of 3
6 Feb 2011, 4:37 PM
#1
ilikemike avatar

ilikemike

New Zenner

Join Date:
Dec 2010
Posts:
31
Plugin Contributions:
0

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?

6 Feb 2011, 11:44 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

Scott Wilson has this solution:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_60&products_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)...

<!--bof Form close-->
</form>
<!--bof Form close-->
</div>

Just ABOVE that, paste the following:

<!--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 :>'/>

<!--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 :>'/>

<!--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 :>'/>

<!-- 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 :>'/>

<!-- 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 :>'/>

<!--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 :>'/>

<!-- 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 :>'/>

<!-- 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 :>'/>

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

<!--eof Zen Bookmark Widget-->

20 years a Zencart User

13 Feb 2011, 10:30 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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