Closed (outdated)
Project:
ShareThis
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2012 at 17:24 UTC
Updated:
2 Mar 2023 at 14:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aacraig commentedHere is the patch.
I actually wrote the code using the 7.x-2.2 code base, and only when I checked out the dev version through git did I realize you've added a lot of code to this function.
I've rolled the patch against the dev version, but am not able to test it using that version at the moment. I have tested it on 7.x-2.2 and it works great, increasing the page load speed by 2 - 3 seconds on a page that loads 50 teasers.
Comment #2
chrishks commentedI noticed that if you want to set 'external' in the $options parameter of drupal_add_js like in the patch, then it needs to be in the form of 'type' => 'external' rather than 'external' => TRUE (which you can use in the $data parameter of drupal_add_js) - I had problems when enabling aggregration using the current patch. It's a small change but I have attached an amended patch.
Comment #3
vladimirausIssue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳