提醒:你可以用多个小型HTML页面和导航构建交互式体验
本文回顾了使用大型语言模型 (LLM) 构建网站的一种方法,即通过多个小型 HTML 页面来实现交互,避免使用 JavaScript 进行页面内交互。
这种方法利用 HTML 导航和 CSS 视图过渡(CSS view transitions)来增强用户体验,即使在较旧设备或禁用 JavaScript 的情况下也能正常工作。
网站中的菜单,例如,会导航到专门的页面,而不是通过 JavaScript 实现展开或滑动效果。
核心思想是将浏览器视为导航文档的工具,而不是执行代码的运行时环境,从而简化网站构建。
查看原文开头(英文 · 仅前 3 段)
I wrote about building websites with LLMs — (L)ots of (L)ittle ht(M)l page(s) — and I think it’s time for a post-mortem on that approach:
I like it.
I’ve tweaked a few things from that original post but the underlying idea is still the same, which I would describe as:
※ 出于版权考虑,仅引用前 3 段。完整内容请阅读原文。