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

React Children And Iteration Methods

Smashing Magazine

In this article, we’ll look at a React utility React.Children.toArray which lets us prepare the children prop for inspection and iteration, some of its shortcomings and how to overcome them — through a small open-source package, to keep our React code function the way it is deterministically supposed to behave, keeping performance intact.

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

Improving The Accessibility Of Your Markdown

Smashing Magazine

Two notable examples are comments on GitHub and the source code for posts on Smashing Magazine! The good news : Markdown generates simple HTML markup, and simple HTML markup can be easily read by assistive technology. In addition, there is more to accessibility than just assistive technology. Using Inline SVG Code.

Website 130
article thumbnail

Creating A Magento PWA: Customizing Themes vs. Coding From Scratch

Smashing Magazine

Creating A Magento PWA: Customizing Themes vs. Coding From Scratch. Creating A Magento PWA: Customizing Themes vs. Coding From Scratch. Application leaders for digital commerce technologies must plan for PWAs when designing digital commerce experiences”. One of the reasons for that is because a PWA has the same code base.

Code 74
article thumbnail

Jamstack CMS: The Past, The Present and The Future

Smashing Magazine

Fast-forward 30 years, and website technology has changed significantly — we have images, stylesheets, JavaScript, streaming video, AJAX, animation, WebSockets, WebGL, rounded corners in CSS — the list goes on. However, unlike the early days of the web, static sites are no longer limited to developers working in a code editor.

Ecommerce 139
article thumbnail

Inspired Design Decisions With Otto Storch: When Idea, Copy, Art And Typography Became Inseperable

Smashing Magazine

Recently, I was browsing a new addition to my library and was captivated by one magazine spread. A selection of covers from Otto Storch’s time as art director for McCall’s Magazine. Publishing can be a cut-throat business, and the magazines Storch worked on weren’t high-fashion. Inspired Design Decisions: Avaunt Magazine.

Design 107
article thumbnail

Local Testing A Serverless API (API Gateway And Lambda)

Smashing Magazine

Lambda layers are a way to share code across API endpoints, reducing the amount of repeated code across the API project. This not only allows us to run Lambda scripts locally, but we can also add breakpoints using Debug Mode in Visual Studio Code. Debug Mode in Visual Studio Code ?? Further Reading On Smashing Magazine.

Lambda 118