Improve site load performance by adding the loadLate parameter:
http://support.sharethis.com/customer/portal/articles/475091-widget-load

CommentFileSizeAuthor
#1 Page_load_performance-1422330-1.patch3.05 KBghindle
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ghindle’s picture

There is a checkbox in the Advanced options to turn this option on.

moshe weitzman’s picture

Status: Active » Needs review

Code looks good. I did not get a chance to actually try it.

RobLoach’s picture

+++ b/sharethis.moduleundefined
@@ -466,10 +478,15 @@ function sharethis_get_button_HTML($data_options, $mPath, $mTitle) {
+  // If switchTo5x is set to false, then the "classic" widget will be selected.
+  $st_js_options[] = 'switchTo5x=' . ($data_options['widget'] == 'st_multi' ? 'true' : 'false');
+  if (!empty($data_options['late_load'])) {
+    $st_js_options[] = '__st_loadLate=true';
+  }

Think we could merge that with the other script tags?

RobLoach’s picture

Status: Needs review » Fixed

Thanks... Cleaned up the patch a bit before committing it:
http://drupalcode.org/project/sharethis.git/commitdiff/ce40067

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

change url