Supports-Loading-Mode header
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Tiêu đề HTTP Supports-Loading-Mode response header cho phép phản hồi đăng ký tải trong ngữ cảnh mới lạ, rủi ro cao hơn mà nếu không thì nó sẽ không thể tải được.
| Loại tiêu đề | Response header |
|---|---|
| CORS-safelisted response header | Không |
Cú pháp
Supports-Loading-Mode: <client-hint-headers>
Chỉ thị
Giá trị tiêu đề Supports-Loading-Mode là danh sách một hoặc nhiều token, có thể bao gồm các giá trị sau:
credentialed-prerenderThử nghiệm-
Cho biết rằng một nguồn gốc đích đăng ký tải tài liệu qua prerendering cross-origin, same-site.
fenced-frameThử nghiệm-
Phản hồi có thể được tải bên trong fenced frame. Nếu không có sự đăng ký rõ ràng này, tất cả điều hướng bên trong fenced frame sẽ thất bại.
Ví dụ
Supports-Loading-Mode: fenced-frame
Đặc tả
| Thông số kỹ thuật |
|---|
| Prerendering Revamped> # supports-loading-mode> |
Tương thích trình duyệt
Xem thêm
- Fenced Frame API
- Speculation Rules API
- Speculative loading
- Prerender pages in Chrome for instant page navigations trên developer.chrome.com