Better HN
topnewbestaskshowjobs
Log inSign up

llcooliovice

252 karma · joined Sep 13, 2022 (4y ago) · 32 submissions

Submissions

comment 4mo ago · link · parent

Chrome are prototyping a declarative client-side include mechanism.

<template src="/partial.html" for=""></template>

Together with the declarative API, it will also include a way to import HTML in JavaScript:

import fragment from "/partial.html" with { type: "fragment" }

2.

Chrome Prototypes HTML Includes(github.com ↗)

1 points · by llcooliovice · 4mo ago · 1 comment

3.

Implementing dark mode with standard CSS(olliewilliams.xyz ↗)

3 points · by llcooliovice · 5mo ago · discuss

4.

Ongoing attempt to standardise a DOM Templating API in browsers(github.com ↗)

1 points · by llcooliovice · 5mo ago · discuss

5.

Trusted Types and the Sanitizer API(olliewilliams.xyz ↗)

1 points · by llcooliovice · 1y ago · discuss

comment 1y ago · link · parent

HTML primitives for updating parts of a document without a full page refresh

7.

Declarative Partial Updates Proposal(github.com ↗)

2 points · by llcooliovice · 1y ago · 1 comment

8.

Front end complexity and the HTML Renaissance(olliewilliams.xyz ↗)

2 points · by llcooliovice · 1y ago · discuss

comment 1y ago · link · parent

Interop is such a good idea, I’m surprised more developers don’t participate.

10.

Declarative Route Matching Proposal(github.com ↗)

3 points · by llcooliovice · 1y ago · discuss

comment 1y ago · link · parent

From Dominic Gannaway, the creator of Inferno, who worked on React at Meta and on Svelte 5 at Vercel. Feels like a hybrid of React and Svelte 3/4.

12.

Ripple: new JavaScript framework from an ex-React & Svelte core team member(github.com ↗)

13 points · by llcooliovice · 1y ago · 7 comments

comment 1y ago · link · parent

> We've explored the reactivity landscape. While early DOM templating proposals didn't include updating, userland systems have thoroughly explored the landscape by now, and discovered good mental models and better and worse implementation approaches. I think we can now zero-in on a system that combines the best features from the different approaches.

AFAIK Ryan Carniato/Solid JS is still exploring what’s possible with signals. I don’t think userland exploration of this space has entirely finished, and further innovation may be possible.

comment 1y ago · link · parent

> If the Records and Tuples proposal were progressing, JSX could maybe create Records with boxes, but that proposal has been stalled, especially on the record identity and box parts that would make it suitable for a JSX semantics.

That proposal hasn’t just stalled, it’s been withdrawn. https://github.com/tc39/proposal-record-tuple/issues/394

It has been replaced by https://github.com/tc39/proposal-composites

comment 1y ago · link · parent

> There are in-flight proposals for very low-level DOM update primitives, like DOM Parts, which target framework implementations, but I think higher-level APIs like full declarative templating can take even more load off, help prove out and complete the lower-level API proposals, and be really impactful for developers and users.

There is an alternative suggestion to DOM parts which might be a better bet: https://github.com/whatwg/dom/issues/736

comment 1y ago · link · parent

Chrome implemented a prototype, then the spec changed and they removed it, then they implemented the new version. I should have been clearer and said Chrome Canary and Firefox Nightly. Not sure when it will reach stable but probably some point this year, they’ve been working on it for ages and Safari is onboard.

comment 1y ago · link · parent

> There's no fundamental templating knowledge that's portable between stacks, and native DOM creation APIs like innerHTML are unsafe by default.

setHTML() is already implemented in Chrome/Edge and Firefox so this point is a bit outdated - there is a safe alternative to innerHTML.

comment 1y ago · link · parent

There is still innovation happening in frameworks. I do wonder if it is too early to start adding things like this to the browser. Web components landed way too early and now we’re stuck with them.

comment 1y ago · link · parent

A better non-modal dialog using the popover API.

20.

A Modern API for Cookies(fullystacked.net ↗)

1 points · by llcooliovice · 1y ago · discuss

comment 3y ago · link · parent

Now supported by the Apple M3 chips.

22.

AV1 video codec gains broader hardware support(fullystacked.net ↗)

323 points · by llcooliovice · 3y ago · 202 comments

23.

The View Transitions API, the Navigation API and the SPA vs. MPA Debate(fullystacked.net ↗)

2 points · by llcooliovice · 3y ago · discuss

12