Little fix for Minized JavaScript Please!
-
Hey, Thank you for your great plug-ins guys! Recently I start new web site and using your social sharing plugins. I really like it because it’s simple and doesn’t generate unnecessary request.
But I found when I minimize JavaScript, It throws a syntax error. I’m not JS specialist or something but somehow found a quick fix.
line 517 in sassy-social-share-public.js, add ‘;’ at the end of the bracket.
…
Yoolink: {
title: “Yoolink”,
locale: “en-US”,
redirect_url: “//yoolink.to/addorshare?url_value=” + postUrl + “&title=” + postTitle,
}
line 517: }; <= here comes a semi-colon
var heateorSssMoreSharingServicesHtml = ‘<button id=”heateor_sss_sharing_popup_close” class=”close-button separated”><img src=”‘+
…I read other part of the source code and thought probably you care about minification, so I wrote this here. If you think this fix doesn’t cause any other problems please do this on next update! It makes me very happy 🙂
By the way plugin works fine if I don’t try to minify scripts but now I’m trying to get 100% score on PageSpeed, GTMetrix, Pingdom. That’s kind of latest obsession of mine.
The page I need help with: [log in to see the link]
- The topic ‘Little fix for Minized JavaScript Please!’ is closed to new replies.