0
0
Svelteframework~5 mins

Progressive enhancement in Svelte - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is progressive enhancement in web development?
Progressive enhancement means building a basic, working website first, then adding extra features that improve the experience for browsers or devices that support them.
Click to reveal answer
intermediate
How does Svelte support progressive enhancement?
Svelte compiles components to simple JavaScript that runs in the browser, allowing the page to work without JavaScript first, then enhancing with interactivity when JS loads.
Click to reveal answer
beginner
Why is progressive enhancement important for accessibility?
It ensures all users, including those with older browsers or assistive technologies, can access the core content and functionality without barriers.
Click to reveal answer
beginner
In Svelte, what is a simple way to add progressive enhancement to a button?
Start with a normal HTML button that works without JS, then add Svelte event handlers to enhance it with extra behavior when JS is available.
Click to reveal answer
intermediate
What is the difference between progressive enhancement and graceful degradation?
Progressive enhancement builds from a simple base up, adding features for better browsers. Graceful degradation starts with a complex site and tries to keep it usable on older browsers.
Click to reveal answer
What is the first step in progressive enhancement?
AIgnore older browsers
BBuild a basic, functional website
CUse only JavaScript for all features
DAdd complex animations
How does Svelte help with progressive enhancement?
ABy compiling components to efficient JavaScript that enhances basic HTML
BBy requiring heavy JavaScript frameworks
CBy disabling HTML fallback
DBy only supporting modern browsers
Which is NOT a benefit of progressive enhancement?
ABetter accessibility
BWorks on all browsers
CRequires users to have JavaScript enabled
DImproves user experience gradually
What should you do to enhance a button in Svelte progressively?
AUse a plain HTML button first, then add Svelte event handlers
BUse only JavaScript to create the button
CHide the button if JavaScript is disabled
DUse inline styles only
What is the main difference between progressive enhancement and graceful degradation?
AProgressive enhancement requires no JavaScript
BThey are the same
CGraceful degradation ignores older browsers
DProgressive enhancement builds up from simple; graceful degradation starts complex and simplifies
Explain how you would apply progressive enhancement in a Svelte app for a form component.
Think about how the form works with and without JavaScript.
You got /4 concepts.
    Describe why progressive enhancement improves accessibility and user experience.
    Consider users with different devices and abilities.
    You got /4 concepts.