DEV Community

Discussion on: Add An External Script to a Vue Component

Collapse
 
t_pavard profile image
Tristan Pavard

Why not use onload ? demo

Collapse
 
lagamura profile image
Lagaras Stelios

@t_pavard Thanks for the demo,

I am trying to replicate an issue in sfc vue playground
Is there any more convenient way for using packages there? I don't mind if it is cdn or npm.

Collapse
 
sandrarodgers profile image
SandraRodgers

I didn't use onload because I'm still learning this stuff and I didn't think to use it. I know that there are better ways of doing this so I was hoping to get some ideas from people out there.

This is awesome, thanks!