Remove Availability Remove Best Practices Remove Code Remove Magazine
article thumbnail

Improving JavaScript Bundle Performance With Code-Splitting

Smashing Magazine

Improving JavaScript Bundle Performance With Code-Splitting. Improving JavaScript Bundle Performance With Code-Splitting. It’s a common misconception that the code which is produced by the framework build tools (Webpack, for example) is fully optimized and cannot be improved upon any further. The answer lies in code-splitting.

Code 89
article thumbnail

Refactoring CSS: Introduction (Part 1)

Smashing Magazine

However, this simplicity leaves the door open for many potential issues and technical debt — bloated code, specificity hell, duplicated code blocks with very little to no difference, leftover unused selectors, unnecessary hacks, and workarounds, to name a few. Leftover, unused chunks of code from deleted features.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Signals For Customizing Website User Experience

Smashing Magazine

That user preference is available in two (hopefully soon to be three!) This is available behind a flag in Chrome, but not yet on by default while it finishes standardization. Approximately two-thirds of Indian mobile Chrome users of Smashing Magazine have this setting turned on, for example. Save Data API. And Is It Used?

Website 103
article thumbnail

Let’s Dive Into Cypress For End-to-End Testing

Smashing Magazine

We know that front-end testing is a set of practices for testing the UI of a web application, including its functionality. Makes sense — with these measures, we can ensure that our application is working correctly and that no future changes will break our code. Example: Finding My Articles in Smashing Magazine.

Testing 135
article thumbnail

Next.js Wildcard Subdomains

Smashing Magazine

With 100s of real-life examples , guidelines and best practices that you can apply right away. In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; More after jump! From complex mega-dropdowns to carousels and filters. Online, and live.

Servers 84
article thumbnail

Three Insights I Gained While Researching Vue.js Accessibility

Smashing Magazine

Let’s progress from theoretical considerations into hands-on code. In the following code block, you see a component listing the newest problems in an online shop. With best practices and guidelines on accessibility, assistive technology and inclusive design patterns. More after jump! Online, and live. I’m the live region.

Strategy 141
article thumbnail

Gone Floating Labels And Green Lighthouse Scores

Smashing Magazine

We then adjusted our build to generate base64-strings for AVIF files automatically during the build time (if author images are available as AVIF images). With wonderful attendees from all over the world coming together to learn together, so many ideas have been brought to life — especially in the live design and coding sessions.

Mobile 140