Showing counts before the first click
crazymonk opened this issue · 4 comments
I'm wondering if anyone has any thoughts on the feasibility of adding counts to buttons before the first click, if the 3rd party API supports that functionality. It would add an additional API dependency but could lead to higher interactivity as the counts are often a motivator. Has this feature been explored by anyone?
Thanks,
-marco
This can't be done, because it would need the browser to contact Facebook/Twitter/etc., which is exactly what this script is trying to avoid (and what the original buttons do).
But couldn't it be done with a server-side API call? It wouldn't allow the 3rd party to do any tracking...
Maybe, but this is a JavaScript module that can be used everywhere, even with static files. Writing a server component is not the scope of this project and would require certain dependencies. If someone would like to use this and there's no server component for the framework they're using (which would be likely), they would need to implement their own. I think implementing the button is easy in comparison.
True enough. It does make it a different beast. Thanks for your thoughts.