17 个仓库
Techniques for initiating network requests via browser link tags to populate caches early.
Distinguishing note: Uses browser-native link tags for preloading, distinct from programmatic API-based prefetching.
Explore 17 awesome GitHub repositories matching web development · Resource Preloading. Refine with filters or upvote what's useful.
React 是一个用于构建用户界面的 JavaScript 库,采用组件化架构和单向数据流。
Uses resource hints to download ESM modules early, reducing latency when resources are required.
SWR is a data fetching library that provides a collection of hooks for managing remote data synchronization, caching, and state updates in web applications. It employs a declarative approach to handle complex network request lifecycles and dependency chains, ensuring that client-side application state remains consistent with server data through automatic revalidation and background updates. The library distinguishes itself through a reactive cache layer that automatically synchronizes local state with remote sources based on component lifecycle events. It features event-driven revalidation, w
Initiates network requests using native browser link tags to populate the cache before JavaScript execution begins.
Fasthttp is a high-performance networking framework for Go, designed to maximize throughput and minimize memory overhead in demanding web applications. It functions as a specialized HTTP server and client library that prioritizes efficient resource management, allowing developers to build scalable services capable of handling massive concurrent traffic with minimal garbage collection pressure. The library distinguishes itself through a focus on zero-allocation processing and low-level optimization. It achieves this by recycling temporary request and response objects through managed pools and
Transmits informational responses to trigger resource preloading while the server prepares final content.
Motion Canvas is a TypeScript-based framework for creating programmatic animations and motion graphics. It functions as a code-based animation tool that allows developers to define visual transitions, element properties, and timing through scripts rather than traditional timeline-based interfaces. The library renders frame-accurate motion graphics directly in the browser using web technologies. The project utilizes a virtual scene graph to manage visual objects and their transformations, which are then rendered to an HTML5 canvas. It employs generator functions to sequence animations and reac
Processes and caches external media resources during the build phase to ensure seamless playback without latency.
react-loadable is a React component lazy loader and JavaScript bundle orchestrator designed to manage the delivery of asynchronous components. It provides a bridge for server-side rendering to coordinate dynamic module preloading and prevent content flicker during client hydration. The project includes a dynamic component preloader to trigger background fetches of visual components before they are required on screen. It utilizes a system to map individual modules to their respective bundles, ensuring the correct assets are delivered. The library covers code splitting workflows and asynchrono
Initiates network requests for JavaScript bundles before the components are required for rendering.
Workbox is a modular library and toolkit designed for managing service workers in progressive web applications. It provides a comprehensive framework for handling asset caching, request routing, and background script lifecycle management, enabling developers to build web applications that function reliably offline and load efficiently. The project distinguishes itself through a declarative routing engine and a plugin-based architecture that allows for the injection of custom logic into the request and response processing pipeline. It supports advanced caching patterns, such as cache-first or
Activates browser-level navigation preloading to reduce latency for network-first requests by fetching resources in parallel.
React is a JavaScript library for building user interfaces through the composition of modular, self-contained components. It employs a declarative programming model where developers describe the desired visual state, and the library automatically manages the underlying document updates and state synchronization. By utilizing a virtual representation of the document, it calculates and applies minimal changes to the browser, ensuring efficient rendering even in complex applications. The library distinguishes itself through a sophisticated scheduling system that manages rendering work in increme
Initiates early network requests for scripts, stylesheets, and fonts to improve page performance.
This repository contains the HTML specification, which defines the core standards for web page structuring, content organization, and document rendering. It establishes the fundamental algorithms for state-machine-based tokenization, tree construction for the document object model, and origin-based security isolation. The specification provides a framework for defining custom elements with independent lifecycles and registries. It also details the requirements for cross-document communication, session history management, and the synchronization of interface properties with content attributes.
Defines the standards for fetching high-priority assets immediately to optimize page loading performance.
Snapdom is a DOM capture engine that serializes live web page elements into images, videos, documents, and other formats. It converts any DOM subtree into PNG, JPG, WebP, SVG, PDF, or self-contained HTML, and can record animating elements as video files or animated GIFs using the browser's MediaRecorder API. The library distinguishes itself through a plugin-based architecture that allows custom output format handlers and pipeline hooks to extend the capture process without re-cloning the source element. It manages separate caches for images, styles, and fonts with preloading and clearing meth
Fetches images, backgrounds, and fonts before a capture to prevent rendering stalls.
Waku is a minimal React framework built around React Server Components. It renders components exclusively on the server for data fetching and server-side logic, then hydrates client components in the browser for interactivity. The framework supports hybrid rendering, mixing static prerendering at build time with dynamic per-request rendering within a single application, and allows independently loading slice components that can be static or dynamic. The framework distinguishes itself through its file-based routing system that defines pages, layouts, and API endpoints by placing files in a dir
Prefetches internal link destinations ahead of navigation to improve page transition speed.
instant.page is a client-side JavaScript library that preloads linked pages on hover or touch interactions, making navigation feel instantaneous without consuming unnecessary bandwidth. It works by starting to fetch a page the moment a user hovers over a link for 65 milliseconds, leaving over 300 milliseconds for the page to load before the click, and similarly preloads on touch start for mobile visitors. The script offers multiple preloading strategies to balance responsiveness with resource conservation. It can be configured to preload on mousedown, when links become visible in the viewport
Preloads linked pages on hover or touch to make navigation feel instant without consuming unnecessary bandwidth.
Tape is a TAP-producing test framework for Node.js that provides assertions, spies, subtests, and isolated test harnesses. It functions as both a test runner and an assertion library, outputting results in the Test Anything Protocol format for machine or human consumption. The framework manages test execution through callback-based async control, plan-based auto termination, and subtest stack isolation. It includes a spy wrapper system that replaces object methods with call-recording wrappers that restore originals during teardown, along with a teardown callback registry that collects and exe
Supports preloading modules via command-line flag for transpiler setup before tests run.
Instantclick 是一个客户端导航增强器和 JavaScript 页面预加载器。它拦截 HTTP 请求以通过异步请求更新页面标题和内容,避免完全浏览器刷新,从而消除导航过程中的白屏闪烁。 该项目通过在用户悬停在超链接上时在后台获取链接内容来减少感知的前端延迟。这种基于意图的预加载确保在用户点击时内容已准备就绪。 该工具通过客户端历史记录操作和基于 DOM 的内容注入来管理浏览体验。它还包括一个可定制的导航进度指示器,在处理异步页面请求时提供视觉反馈。
Preloads linked pages on hover to make navigation feel instant without consuming unnecessary bandwidth.
一个为 Hexo 框架构建的响应式 Material Design 静态博客主题。它作为一个综合布局系统,将 Markdown 文件转换为样式化的 HTML 页面,为技术文档和个人博客提供了一个专门的环境。 该主题的特点是采用数据驱动的内容可视化方法,使用雷达图表示分类,使用词云表示标签,以呈现文章元数据。它通过为博客归档使用时间轴架构进一步优化了组织结构。 该项目涵盖了广泛的技术发布功能,包括数学公式渲染、代码块语法高亮以及自适应目录生成。它包括通过动态主页、多级导航菜单和详细个人资料页面进行网站定制的工具。通过集成搜索功能、密码保护文章以及嵌入第三方评论和聊天系统来支持读者互动。 性能通过 CDN 资源路由和资产预加载进行管理,而搜索引擎可见性则通过可配置的 SEO 元数据进行处理。
Optimizes page delivery by preloading essential assets and routing resources through CDNs.
smoothState.js 是一个 AJAX 导航管理器和 jQuery 页面转换库,旨在通过异步加载远程内容来创建页面间的无缝转换。它作为一个浏览器历史状态管理器,将自定义可序列化数据附加到历史记录条目,并处理 URL 重定向,而无需完全刷新浏览器。 该库包含一个客户端页面缓存,将之前访问过的页面存储在内存中以便即时重新加载。它通过内容预取系统进一步减少了感知加载时间,该系统在用户悬停在链接上时启动网络请求。 该项目提供了用于管理加载生命周期以及在页面元素进入和退出期间编排动画的工具。它还允许在获取内容并注入文档之前拦截和修改导航请求及设置。
Provides programmatic link prefetching on hover to reduce perceived latency during page navigation.
这是一个 React Server Components 的实现,提供了一种将服务端渲染与客户端交互性相结合的全栈组件架构。它支持开发 Web 应用程序,其中用于数据获取的服务端组件和交互式客户端组件可以在同一个组件树中共存。 该系统专注于服务端与客户端的数据编排,允许跨网络边界执行服务端函数和数据库变更。它通过一种混合组件架构脱颖而出,将组件执行转移到服务端,从而减小客户端包大小并缩短初始加载时间。 该项目涵盖了广泛的功能,包括使用 Suspense 进行异步数据获取、自动组件记忆化(memoization)以及服务端渲染优化。它还包括用于管理复杂状态、协调资源加载以防止布局偏移,以及构建跨平台 Web 和移动应用程序的工具。 此外还提供了开发工具,用于在开发过程中检测不纯组件、分析模块依赖关系并检查组件层级。
Utilizes browser link tags to initiate early network requests for scripts and fonts to reduce latency.
这是一个用于优化 Angular 应用程序性能的技术参考和指南。它提供了一份全面的检查清单,通过关注包优化、渲染最佳实践和运行时执行来提高速度和效率。 该指南涵盖了广泛的差异化因素,包括通过 Service Workers 和离线缓存实现渐进式 Web 应用策略。它还详细介绍了使用服务端渲染和应用外壳来改善感知加载时间的方法。 该仓库提供了关于更广泛功能领域的指导,例如变更检测调优、使用 Web Workers 卸载繁重计算,以及通过虚拟滚动进行 DOM 管理。它还涵盖了通过 Tree-shaking、压缩和懒加载模块拆分来减小包体积的方法。
Loads assets, styles, or modules in the background before they are requested to improve experience.