#4364 - PREFETCH_URL symbol

Identifier #4364
Issue type Feature request or suggestion
Title PREFETCH_URL symbol
Status Open
Tags

Type: Performance (custom)

Handling member Deleted
Addon core
Description HTML5 allows link preloading, but via <link> tags, not via <a> tags. This is probably for simplicity and security reasons.

Have a PREFETCH_URL symbol that allows a template to hint that a URL should be pre-loaded.
For example,

<a href="{$PREFETCH_URL*,{URL}}">Click me</a>

The symbol doesn't change the URL, but it tells Composr to inject a <link rel="preload"> for that same URL, so that the browser will preload it.
Steps to reproduce

Related to

#4597 - Preemptive page loading (holding issue)

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated