Friday Issue Nr. 123

Happy Friday! This week's roundup brings posts about SPA, Svelte CLI, strict equality operator and the exciting adventure of Monorepo, which has a size of 178GB. For CSS World, there is a great deep dive (twice) into Container Queries and a great post about how browsers render a website.

JavaScript News

Should we rewrite JavaScript tools in “faster” languages?

https://nolanlawson.com/2024/10/20/why-im-skeptical-of-rewriting-javascript-tools-in-faster-languages/

VS Code online theme generator

https://rodrigoluglio.github.io/vscode-theme-generator/

What’s a Single Page App

Excellent explanation of all and in between SPA, SSR, CSR, MPA, and what are their good/bad parts.

https://jakelazaroff.com/words/whats-a-single-page-app

Should JS be split into two languages?

https://devclass.com/2024/10/22/should-javascript-be-split-into-two-languages-new-google-driven-proposal-divides-opinion/

Svelte CLI

https://svelte.dev/blog/sv-the-svelte-cli

Generating random mazes with JavaScript

https://cloudfour.com/thinks/generating-random-mazes-with-javascript/

Apexcharts v4

ApexCharts uses the SVG.js library as its main engine, and it was long overdue for an update. So, this version does exactly that.

https://github.com/apexcharts/apexcharts.js/releases

Git monorepo from 178GB to 5GB

https://www.jonathancreamer.com/how-we-shrunk-our-git-repo-size-by-94-percent/

Why use a strict equality operator?

When comparing two values in JavaScript, it is a good practice to use === instead of ==, and for good reason. But how big is that reason? Below is the implemented function that does exactly that and shows all the necessary checks to get this to work.

https://evanhahn.com/re-implementing-javascript-double-equals-in-javascript/

Dependency cruiser

Visualise dependencies.

https://github.com/sverweij/dependency-cruiser

HTML & CSS News

Web Slinger

https://css-tricks.com/web-slinger-css-like-wow-js-but-with-css-y-scroll-animations/

Container Queries

Another fantastic post for Josh. Despite what Josh says about usage, it seems like the trend is currently up, according to Google Chrome stats. I find CQs very helpful for styling components where I have no control over how clients will use them. In any case, an interesting point is that CQs were initially not possible to implement as child el changes would impact parent el, which would cause a loop.

https://www.joshwcomeau.com/css/container-queries-introduction/

Container Queries with additional power

CQ is already very powerful. However, if you add quantity queries with has() and grid, it gives unexpected power to style any component with pixel perfection (almost).

https://piccalil.li/blog/making-content-aware-components-using-css-has-grid-and-quantity-queries/

Scroll-Driven… Sections

Very interesting use of CSS custom properties to achieve that nice animated scroll effect.

https://frontendmasters.com/blog/scroll-driven-sections/

Another CSS reset file

https://jakelazaroff.com/words/my-modern-css-reset/

Light / Dark in a modern way

https://css-tricks.com/come-to-the-light-dark-side/

Mixed News

From URL to rendered page step-by-step story

Very detailed story, and when you put it that way, it makes you appreciate websites which open <300ms

https://abhisaha.com/blog/exploring-browser-rendering-process

Comment on Mastodon