Remove Availability Remove Code Remove Magazine Remove Speed
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. One of the reasons for that is because a PWA has the same code base. So unlike the case with native applications, the progressive web app needs to be coded only once. Alex Husar.

Code 74
article thumbnail

Next.js Wildcard Subdomains

Smashing Magazine

In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; Here’s how that code looks like: // useEffect and useState must be imported from 'react' const [wildcard, setWildcard] = useState("") useEffect(() => { setWildcard(window.location.hostname.split(".")[0])

Servers 83
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

Performance Game Changer: Browser Back/Forward Cache

Smashing Magazine

You can also disable the Back/Forward Cache in Chrome at chrome://flags/#back-forward-cache if you want to experiment more, but the above steps should hopefully be a sufficient enough test to give a rough feel for the potential speed gains. Those are some of the more common ones, but there are lots of reasons why a site may not be eligible.

Cache 91
article thumbnail

Running A Page Speed Test: Monitoring vs. Measuring

Smashing Magazine

Running A Page Speed Test: Monitoring vs. Measuring Running A Page Speed Test: Monitoring vs. Measuring Geoff Graham 2023-08-10T08:00:00+00:00 2023-08-10T12:35:05+00:00 This article is sponsored by DebugBear There is no shortage of ways to measure the speed of a webpage. Lighthouse results. One type is called lab data.

Speed 81
article thumbnail

Using SWR React Hooks With Next.js’ Incremental Static Regeneration (ISR)

Smashing Magazine

The more interesting thing, however, is the impact on the speed of our side. When we measure speed through Lighthouse, we get a speed index of 1.5 With detailed code walkthroughs , hands-on examples and common gotchas — all broken down into short, manageable lessons. The source of our example is available here.).

Cache 102
article thumbnail

Tools And Practices To Speed Up The Vue.js Development Process

Smashing Magazine

Tools And Practices To Speed Up The Vue.js Tools And Practices To Speed Up The Vue.js Using the proposed file structure is not a bad way of structuring your project per se, but as your project grows, you will need a better structure as your code becomes clustered and harder to navigate and access files. Development Process.

Speed 132
article thumbnail

Advent Calendars For Web Designers And Developers (December 2021 Edition)

Smashing Magazine

Advent of Code. If you prefer a puzzle over an article, take a look at Advent of Code. The project is available in twenty languages, and encourages all kinds of contributions to open-source projects — including non-pull-request contributions. Code Security Advent Calendar. JavaAdvent on Twitter. 24 Pull Requests.

Design 107