A Lego superman figure with their cape flying in a wind in front of a dramatic orange/pink sky

Workshop: 1 day

Progressive Enhancement with SvelteKit

Bookable for teams – on-site or remote

Workshop description

Book this workshop

Our mentors look forward to working with your team and unlocking new capabilities.
Get in touch
1

Progressive Enhancement

We'll start by looking into what progressive enhancement is and why it's relevant. We'll look at network speeds and typical latency numbers, as well as at JavaScript bundle sizes, and their impact on load times.

2

Forms in SvelteKit

One of SvelteKit's main mechanisms for supporting progressive enhancment are forms and form actions that can run in Node on the server side. We'll look at data flows, how forms can be enhanced to be handled on the clients side, and a bit at the underlying magic that makes that process seamless for the developer.

3

Example: Autocomplete

We'll build am input component that starts off as a simple text field without JavaScript and is progressively enhanced into an auto-complete input with JavaScript.

4

Example: Search

Next, we'll build a search UI that works with and without JavaScript.

5

Testing

Building progressively enhanced applications requires testing two scenarios for all flows: one with and one without JavaScript. We'll cover the topic by writing Playwright tests for the previously implemented examples.

6

CSS & Progressive Enhancement

Some elements of user interfaces can be made functional with CSS alone. We'll look at typical scenarios where that approach works and how UI state can be kept in sync with our Svelte application.

7

Example: Dialog with inline JavaScript

Finally, we'll build a dialog with a tiny snipped of inline JavaScript that works without the entirety of the Svelte application having started.

Your mentor

Paolo is a huge nerd and Svelte maintainer. He's also one of the creators of sveltelab.dev - a REPL for SvelteKit.

Book this workshop

Our mentors look forward to working with your team and unlocking new capabilities.
Your message is being sent…

Unable to send message.

Please try again later or contact us at info@mainmatter.com

Thank you!

We will be in touch soon.

Not the right workshop for you?

Take a look at our wide range of workshops to take your team to the next level
Our workshops

Stay up to date on Svelte

Subscribe to our newsletter and stay up to date about the latest events, workshops, and other news around Svelte & SvelteKit.