TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Wither Offline Mode?

3 点作者 markchristian将近 2 年前

1 comment

cratermoon将近 2 年前
&gt; They are some of the most capable and ambitious pieces of software ever written—and yet it’s commonplace for small teams of developers to toss aside large pieces of built-in browser functionality in favor of doing everything from scratch.<p>The author highlights something very important here. There&#x27;s no substantial offline mode for HTTP. The request-response nature of the HTTP protocol has no standard or policy for what to do if the request can&#x27;t be sent. Browsers have grown to include some ability to operate offline, but it&#x27;s an afterthought. Firefox&#x27;s offline mode doesn&#x27;t do much more than allow for browsing cached pages, which isn&#x27;t much good if those pages run javascript that needs connectivity. Much of the rebuilding-from-scratch in SPA development is to supplement or extend the browser&#x27;s functionality to be offline-friendly.<p>As the author notes SPAs arose at a time when connectivity was much more intermittent. Today, the areas of the world with poor connectivity are of little to no interest to businesses that profit from being on the web. Browsers don&#x27;t support offline mode better because there&#x27;s no financial demand for it.<p>This leaves offline mode as a niche where the&#x27;s little or no money to be made, so hardly anyone cares any more. It&#x27;s not possible to serve up targeted ads through real-time auction bidding when the user viewing the page isn&#x27;t connected.