© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Shrey Tiwari
Software Developer @ Geekyants
Embedding an independent component in a third party website. As a developer, we might come across a situation where we want to inject some component or an app (or a part of an app) in some external application. Such components are called widgets. W...
James White
Code
Could you explain why you’ve dynamically linked the script rather than just adding the link directly? I suppose it ensures that the script is in the head tag in case the widget is used just below that, but it feels odd.
Rishi for easyweb.dev
I like shiny things
Where are you using vue here?
are you creating the widget in vue? or adding the widget to a vue app?
where is the vue instance ?
Vue is used in creating the widget.
James White
Code
Could you explain why you’ve dynamically linked the script rather than just adding the link directly? I suppose it ensures that the script is in the head tag in case the widget is used just below that, but it feels odd.