# widget

  • JavaScript _ 2021-10-26

    Here is how call-to-action widgets probably work

    Did you ever wondered how the call-to-action widgets work? You know, those little buttons for sharing content in the social networks. Very often they are distributed as iframes but sometimes we have to copy/paste script tags. And the instructions are "Place the following code where you want the button to appear". But if that's a script tag how it knows where to inject the button? The goal of this article is to give you an answer on this question.

    → Read more

  • JavaScript _ 2016-04-09

    iframe, or not, that is the question

    One of the things that I really like at work is the fact that we spend time in research tickets. We have unknowns and we make a research to find out more information on particular topic. We then base our decisions on the results. Recently we had to decide whether to use an <iframe> for a third party widget development. I feel that the collected information may be handy to someone else so I decided to write it down here.

    → Read more

If this place saved you a few hours of debugging - or at least one existential crisis - you can buy me a coffee or check out my book Pocket Guide to Seniority. I've also written other books and built a video course called Do You Speak JavaScript? - where we lovingly dissect the strange parts of JS we pretend to understand.

RSS _ Stats _ Keywords _ License