Gwtar: A New HTML Archival Format That Solves the Static, Single-File, Efficient Trilemma
By
theblazehen
Sesame, salt, and substance. A flagship bake.
Summary
Gwtar is an experimental new HTML archival format that solves the trilemma of creating a format that is simultaneously static (self-contained with all assets), single-file (zero additional files), and efficient (lazy-loads assets only as needed). The format uses JavaScript in the HTML header to make HTTP range requests, allowing browsers to efficiently load only necessary portions of large HTML archives while maintaining a single, self-contained file structure. It's currently used on Gwern.net for serving large HTML archives.
Key quotes
· 4 pulledArchiving HTML files faces a trilemma: it is easy to create an archival format which is any two of 'static' (self-contained ie. all assets included, no special software or server support), 'single-file' (when stored on disk, zero additional files or modifications), and 'efficient' (lazy-loads assets only as necessary to display to a user), but no known format allows all 3 simultaneously.
We introduce an experimental new format, Gwtar (logo; pronounced 'guitar', .gwtar.html extension), which achieves all 3.
Gwtar is a new polyglot HTML archival format which provides a single, self-contained, HTML file which still can be efficiently lazy-loaded by a web browser.
This is done by a header's JavaScript making HTTP range requests. It is used on Gwern.net to serve large HTML archives.
You might also wanna read
WebSparks: An AI-Powered Tool for Building Web Applications Without Extensive Coding
WebSparks is an AI-powered software engineer that transforms ideas into fully functional web applications without requiring extensive coding
innovirtuoso.com·18h agoJoost de Valk publishes open Website Specification: 128 rules for modern, future-proof websites
Joost de Valk, creator of Yoast SEO, published the Website Specification (specification.website) — an open, platform-agnostic reference docu
ZX Spectrum BASIC interpreter rebuilt from scratch to run natively in web browsers
A developer has rebuilt the ZX Spectrum's BASIC interpreter from scratch to run in a web browser, without emulating the original Z80 hardwar
How to Set Up an Apache Reverse Proxy for an Ecommerce Website
This article provides a comprehensive, start-to-finish guide on setting up an Apache reverse proxy specifically for ecommerce websites. It c
blog.radwebhosting.com·2d agoImplementing live text search in React with Firestore Enterprise's built-in search pipeline
Firebase's Firestore Enterprise edition now includes built-in text search support. This article demonstrates how to implement live text sear
firebase.blog·2d agowterm: A DOM-based Web Terminal Emulator Powered by Zig and WebAssembly
wterm is a web-based terminal emulator that renders directly to the DOM, providing native text selection, copy/paste, find functionality, an
