投機ルールジェネレーターとは
投機ルールジェネレーターは、ChromeとEdgeでページのプリレンダリングとプリフェッチを行うためのSpeculation Rules JSONを生成します。 出力は公開サイトに使う前に確認しやすい形で表示されます。
Quick answer
Speculation Rules use JSON to tell Chrome and Edge which pages to prefetch or prerender before the user clicks. Prerender loads the full page for instant navigation; prefetch fetches only the main document.
Limitations
- Speculation Rules only work in Chrome and Edge. Other browsers ignore the script tag entirely.
- Eager prerendering of many pages can waste significant bandwidth and memory, especially on mobile devices.
- Cross-origin prerendering has strict privacy constraints. Browsers may strip cookies and storage access from cross-origin prerendered pages.
使い方
- 必要な値を入力します。
- 結果パネルの出力を確認します。
- ページに合う部分だけコピーします。
- 公開前にブラウザとホスティング環境で確認します。
主な用途
- 公開前の繰り返し作業を短くする。
- マークアップ、CSS、チェックリストを準備する。
- 静的サイトで見落としやすい小さなミスを減らす。