You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/tutorial/02-sveltekit/04-forms/04-progressive-enhancement/README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
title: Progressive enhancement
3
3
---
4
4
5
-
Because we're using `<form>`, our app works even if the user doesn't have JavaScript ([which happens more often than you probably think](https://kryogenix.org/code/browser/everyonehasjs.html)). That's great, because it means our app is resilient.
Most of the time, users _do_ have JavaScript. In those cases, we can _progressively enhance_ the experience, the same way SvelteKit progressively enhances `<a>`elements by using client-side routing.
And that's all it takes! Now, when JavaScript is enabled, `use:enhance`will emulate the browser-native behaviour except for the full-page reloads. It will:
0 commit comments