I’m not familiar with the plugin, but I see you use jQuery. So this might come handy some time in the future maybe.
If you add listeners like
$('[data-sharer]').on('click', function(e) {});
Then you have to do this every time dynamic content, which contains such elements, is loaded, but if you add like this for eg.:
$('body').on('click', '[data-sharer]', function(e) {});
Then the event listener is added actually to the body itself and clicks are checked for '[data-sharer]'
inside body
no matter when elements were loaded. So in this case you wouldn’t need to add listeners every time dynamic content is loaded.
Not sure how you can achieve same with vanilla JS