簡體   English   中英

如何 twitter 像加載網頁

[英]How to twitter like load a webpage

我是唯一注意到 twitter 桌面的新版本即使沒有互聯網它仍然加載主要樣式然后只是告訴沒有互聯網? 好吧,我做到了,現在我想制作一個即使沒有互聯網也可以加載的網站,誰能告訴我怎么做? 我使用純 HTML、CSS 和 js 作為前端,節點 js 作為后端。

I currently have no idea how to do it

我希望它能夠加載能夠運行飛行腳本以在頁面上生成元素的廣告。

It's called Progressive Web Apps, Progressive Web Apps (PWAs) are web applications that are regular web pages or websites, but can appear to the user like traditional applications or native mobile applications. 應用程序類型嘗試將大多數現代瀏覽器提供的功能與移動體驗的優勢結合起來。

  1. https://developers.google.com/web/progressive-web-apps
  2. https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp

A Web cache (or HTTP cache) is an information technology for the temporary storage (caching) of Web documents, such as Web pages, images, and other types of Web multimedia, to reduce server lag. --Wikipedia

web 頁面已經存儲,當您加載它時,它會從緩存中加載,並且檢查連接的 function 會發出沒有互聯網連接的警報。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM