DEV Community

David
David

Posted on

can I use jquery plugins not developed for svelte

Hi, Like to know if I'm limited to using packages/plugins developed for Svelte, or if I can also install jquery plugins like lozad.js or magnify.js in my Svelte projects. How do I know which ones I can use?
Thanks for any help

Top comments (1)

Collapse
 
giorgosk profile image
Giorgos Kontopoulos 👀

Plugins developed for another framework will not be able to be used directly with svelte. In this case at the very least it should require to load jquery first which defeats the purpose.

You should usually try to search for something equivalent

lozad.js is lazy loading of images I think so you might be able to use github.com/leafOfTree/svelte-lazy

see what the plugin does and search that term using the word svelte

For example for the 2nd one you can search google.com/search?q=magnifying+gla...

Try the plugins and see which one fits your use case