Social sharing web part - Has anyone built one?

Sarah Pengelly asked on January 14, 2016 17:45

Has anyone created a social sharing web part for Kentico? Something like share this or add this without the significant performance hit? We have implemented both in the past but found that they harm the performance of a page.

Recent Answers


Brenden Kehren answered on January 14, 2016 21:37

If you have the OG tags filled out prior to sharing the page, then it shouldn't really be an issue to just get the code from the social networks for sharing to their site.

What kind of performance issues are you seeing with the 3rd party services? Have you talked with them to see if there was anything they could do to improve performance?

0 votesVote for this answer Mark as a Correct answer

Sarah Pengelly answered on January 14, 2016 21:51

We have the OG tags on the pages that are linked to page type fields. My main concern is the Share this plugin was adding up to an additional 36 http requests to a page. This caused site performance to drag on a site with alot of traffic (it made the site unresponsive). We are looking at building an accessible and performant social media sharing web part to use on multiple projects but in the mean time I was wondering what other kentico devs do.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 14, 2016 22:58

So as I stated, you'd just fill out the OG tags (optional), then get whatever code you need from the other social platforms and dynamically create the "share" buttons with the data needed. As long as you have the code needed from the social platforms, you can create your own share button. My concern with doing it this way, is you're probably still going to have to link back to those social platforms with some js or other files so you'll still have http requests and they could be a lot if you have a lot of share buttons.

Just trying to confirm, you can for certain state the site went unresponsive because of the additional http requests for the share buttons? There may be other options like optimizing webparts and cache in Kentico and the server which will also help your performance.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.