News for hackers. Stuff that matters.
Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o... by streamofdigits on Tuesday November 23, 2021 @12:31PM (#29320558)
would it possible to have a browser ship with htmx so that it is possible to have truly "javascript optional"? (in principle this applies to any full js framework but I suppose it is natural in the htmx context)

are there any unsurmountable issues around security and the sandbox etc (not terribly familiar with browser internals)

Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o... by deniz-a on Tuesday November 23, 2021 @01:04PM (#29320982)
Most of what htmx does is a direct extension of the browser's capabilities. Some issues I can think of are

- maintaining the "accessible by default" nature of HTML

- swapping. htmx takes html from the server and uses one of innerHTML, outerHTML and insertAdjacentHTML to put it into the document, but it also does a whole lot more to avoid unexpected behavior. This would all need to be specified and implemented natively

Re:Django, HTMX and Alpine.js: Modern websites, JavaScript o... by yawaramin on Thursday December 02, 2021 @12:49PM (#29419631)
In general there are good reasons not to do that. It's much easier to ship a tiny dependency-free JS library than it is to ship a browser.