Tips and tricks to be aware of when deploying your own Svelte Widget/Library

drupal-camp-asheville-2023 Logo
8 Jul 2023, 6:30 am

Room: Esteemed (229)

Start Time

Topics: Case StudyFront End 

Presenter(s)

Bernardo Martinez of  University of Tennessee Chattanooga

Stop by to gather some tips and tricks. There are plenty of tutorials out there on creating JavaScript apps but there's a lack of libraries and widgets.

Svelte compiles to vanilla JavaScript. Allowing you to have a relatively timeless piece of code that takes advantage of most features found in jQuery, Vue and React without the overhead of dealing with specific versions of those packages.

A standalone app has a different set of concerns than a widget. For example, an app usually needs to have a cache buster string on its JavaScript file but if is a widget that can't be there or one breaks backwards compatibility and if it is there, the browser cache won't load the latest version right away.

In this talk, Martinez will cover the differences between standalone JavaScript apps and libraries/widgets and how one can deal with their own unique challenges. As well as how Drupal core and contributed modules and others deal with this.

Other Sessions

Call for Support