Disappearing frameworks represent a new type of thinking for web development. In the current mainstream JavaScript frameworks, the focus has been on developer experience at the cost of user experience. Disappearing frameworks shift the focus by aiming to deliver as little, even zero, JavaScript to the client. In this paper, we look at the options available in the ecosystem in mid-2023 and characterize them in terms of functionality and features to provide a state-of-the-art view of the trend. We found that the frameworks rely heavily on compilers, often support progressive enhancement, and most of the time support static output. While solutions like Astro are UI library agnostic, others, such as Marko, are more opinionated.
翻译:消失式框架代表着Web开发的一种新型思维范式。在当前主流JavaScript框架中,开发体验往往以牺牲用户体验为代价成为关注重点。消失式框架通过将发送至客户端的JavaScript代码量降至最低甚至为零来转移这一焦点。本文着眼于2023年年中生态系统中可用的框架选择,从功能与特性维度对其进行分类描述,旨在呈现该技术趋势的最新全貌。研究发现这些框架高度依赖编译器,普遍支持渐进增强,且绝大多数支持静态输出。虽然Astro等解决方案是UI库无关的,但Marko等其他框架则更具定制倾向。