<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTML on Commentary of Takao</title><link>https://takao.blog/zh-tw/tags/html/</link><description>Recent content in HTML on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Commentary of Takao</copyright><lastBuildDate>Wed, 15 Jul 2026 22:01:08 +0900</lastBuildDate><atom:link href="https://takao.blog/zh-tw/tags/html/index.xml" rel="self" type="application/rss+xml"/><item><title>優化瀏覽器渲染管道（關鍵路徑）</title><link>https://takao.blog/zh-tw/web/performance-critical-rendering-path-optimizations/</link><pubDate>Sat, 20 Dec 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/performance-critical-rendering-path-optimizations/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/performance-critical-rendering-path-optimizations-zh-tw.png" alt="Featured image of post 優化瀏覽器渲染管道（關鍵路徑）" /&gt;&lt;h2 id="介紹"&gt;介紹
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;關鍵渲染路徑 (CRP)&lt;/strong&gt; 是瀏覽器執行的將 HTML、CSS 和 JavaScript 轉換為螢幕上可見像素的步驟序列。優化此管道直接影響&lt;strong&gt;第一內容繪製 (FCP)&lt;/strong&gt; 和 &lt;strong&gt;最大內容繪製 (LCP)&lt;/strong&gt;。本文詳細介紹了每個 CRP 階段——DOM 構建、CSSOM 構建、渲染樹、佈局、繪製和合成——並提供了可行的最佳化策略。&lt;/p&gt;</description></item><item><title>CSS Popover API: Native Overlays 不需要 JavaScript</title><link>https://takao.blog/zh-tw/web/css-popover-api/</link><pubDate>Tue, 20 Aug 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/css-popover-api/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/css-popover-api-zh-tw.png" alt="Featured image of post CSS Popover API: Native Overlays 不需要 JavaScript" /&gt;&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Building overlays like tooltips, dropdown menus, and modals has traditionally required a significant amount of JavaScript. Developers have relied on CSS &lt;code&gt;position: absolute&lt;/code&gt; with manual coordinate calculations, ARIA attributes for accessibility, and framework-specific solutions such as React portals or Floating UI. The CSS Popover API changes this by providing a native, declarative way to create overlays that handle positioning, show/hide toggling, focus management, and light dismiss without any JavaScript.&lt;/p&gt;</description></item></channel></rss>