The pluso social share buttons flew, I had to make my own

    Until recently, we used PLUSO, a free script-generating service that allows website visitors to post links to your articles on social media (bookmarks, social networks). The service looks like buttons - icons of social networks; Easy to install and looks good. But a fly in the ointment was discovered in this barrel of honey. Pluso connects a bunch of unnecessary files , which pretty much slows down the resource on which these buttons are located.

    We spontaneously decided to write such buttons for our site. I had to write a little, the server on nodejs, the database is redis, everything works quickly and does not load the site, unlike pluso. And another pluso minus - the lack of documentation, for example, how to track the closing of the pluso window - no one knows. In our buttons, we added the onclose event, which fires when this window is closed.
    This morning we found that the pluso social share buttons are broken! When you request to, a 502 error is displayed and as a result, a bunch of sites are left without their favorite share buttons.


    But as it turned out, this is a temporary phenomenon, and by the time of writing, pluso was working again. Nevertheless, today we decided to urgently replace pluso with our buttons on all pages of our site.
    The design was borrowed from pluso, but this is temporary, while testing and appending are in progress, we will soon draw our own.
    The only website where you can see our buttons now is . After replacing pluso with our buttons, the site began to work much faster.
    You can install our buttons for yourself to test them or just see how they work - literally, with two lines of code.

    In the near future we will write a code generator + a bunch of button options, and while there is no generator, instead of randomID you just need to insert a random string (preferably, no longer than 8 characters), a list of social services is written in data-services. networks that we will use,
    data-title - header,
    data-url - link to the
    data-description page - page descriptions

    If randomID matches for several instances of buttons, they will have a common counter.

    I would like to criticize the button code.

    Also popular now: