词条 | Static web page |
释义 |
A static web page (sometimes called a flat page/stationary page) is a web page that is delivered to the user exactly as stored,[1] in contrast to dynamic web pages which are generated by a web application.[2] Consequently, a static web page displays the same information for all users, from all contexts, subject to modern capabilities of a web server to negotiate content-type or language of the document where such versions are available and the server is configured to do so. OverviewStatic web pages are often HTML documents[3] stored as files in the file system and made available by the web server over HTTP (nevertheless URLs ending with ".html" are not always static). However, loose interpretations of the term could include web pages stored in a database, and could even include pages formatted using a template and served through an application server, as long as the page served is unchanging and presented essentially as stored. Static web pages are suitable for the contents that never or rarely need to be updated, though modern static site generators are changing. Maintaining large numbers of static pages as files can be impractical without automated tools, such as Static site generators described in Web template system. Another way for manage static pages include Online compiled source code playgrounds, e.g. GatsbyJS and GitHub may be utilized for migrating a WordPress site into statics web pages.[4] Any personalization or interactivity has to run client-side, which is restricting.[5] Advantages of a static website
Disadvantages of a static website
References1. ^ {{ cite web | url = https://smallbusiness.chron.com/difference-between-dynamic-static-pages-69951.html | title = The Difference Between Dynamic & Static Web Pages | access-date = 2019-03-20 | last = Melendez | first = Steven | date = 2018-08-10 | website = Chron | quote = Static by definition means something that does not change. The first pages on the World Wide Web were largely static and unchanged, delivering the same information about a particular topic to anyone who visited. In some cases, sites may evolve slightly over time but are still largely static, meaning that they only change when manually changed by their creators, not on a regular and automated basis. | format = html | archive-url = https://web.archive.org/web/20190320233700/https://smallbusiness.chron.com/difference-between-dynamic-static-pages-69951.html | archive-date = 2018-03-20 | df = dmy-all }} 2. ^ {{ cite web | url = https://www.pcmag.com/encyclopedia/term/42199/dynamic-web-page | title = Definition of: dynamic Web page | access-date = 2019-03-20 | website = PC Magazine | quote = A Web page that provides custom content for the user based on the results of a search or some other request. | format = html | archive-url = https://web.archive.org/web/20170117040526/https://www.pcmag.com/encyclopedia/term/42199/dynamic-web-page | archive-date = 2017-01-17 | df = dmy-all }} 3. ^{{Cite news|url=https://www.techopedia.com/definition/5399/static-web-page|title=What is a Static Web Page? - Definition from Techopedia|work=Techopedia.com|access-date=2018-11-04|language=en}} 4. ^ {{ cite web | url = https://www.taniarascia.com/migrating-from-wordpress-to-gatsby/ | title = The End of an Era: Migrating from WordPress to Gatsby | access-date = 2019-03-20 | last = Rascia | first = Tania | date = 2019-03-14 | quote = However, I realized that an SSG like Gatsby utilizes the power of code/data splitting, pre-loading, pre-caching, image optimization, and all sorts of performance enhancements that would be difficult or impossible to do with straight HTML. | format = html | archive-url = https://web.archive.org/web/20190321002146/http://www.taniarascia.com/migrating-from-wordpress-to-gatsby/ | archive-date = 2019-03-21 | df = dmy-all }} 5. ^1 {{ cite web | url = https://davidwalsh.name/introduction-static-site-generators | title = An Introduction to Static Site Generators | access-date = 2019-03-20 | last = Bouças | first = Eduardo | date = 2015-05-20 | quote = A dangerous solution: There’s an easy exit for whenever you’re faced with the challenge of dynamically updating content on a static site: “I can do it with JavaScript”. Doing processing on the client-side and appending the results to the page after it’s been served can be the right approach for some cases, but must not be seen as the magic solution that turns your static site into a full dynamic one. | format = html | archive-url = https://archive.today/bFVCV | archive-date = 2015-07-21 | df = dmy-all }} 6. ^{{Cite web|url=http://jekyll.tips/jekyll-casts/why-use-a-static-site-generator/|title=Why use a static site generator? - Jekyll Tips|website=Jekyll Tips|language=en|access-date=2017-02-17}} 7. ^{{Cite news|url=https://www.smashingmagazine.com/2015/11/modern-static-website-generators-next-big-thing/|title=Why Static Website Generators Are The Next Big Thing – Smashing Magazine|date=2015-11-02|newspaper=Smashing Magazine|access-date=2017-02-17|language=en-US}} 8. ^ {{ cite web | url = https://davidwalsh.name/introduction-static-site-generators | title = An Introduction to Static Site Generators | access-date = 2019-03-20 | last = Bouças | first = Eduardo | date = 2015-05-20 | quote = Less hassle with the server: Installing and maintaining the infrastructure required to run a dynamic site can be quite challenging, especially when multiple servers are involved or when something needs to be migrated. There’s packages, libraries, modules and frameworks with different versions and dependencies, there’s different web servers and database engines in different operating systems. | format = html | archive-url = https://archive.today/bFVCV | archive-date = 2015-07-21 | df = dmy-all }} 9. ^{{Cite web|url=https://wsvincent.com/static-vs-dynamic-websites-pros-and-cons/|title=Static vs Dynamic Websites: Pros and Cons|last=Vincet|first=William|date=9 October 2018}} External links
3 : Web 1.0|Static website generators|Web development |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。