-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component for quicklink #19905
Comments
Thanks @JosefJezek. We have started designing for a holistic seamless page transition experience in AMP which would also include the logic of prefetching (and prerendering since AMP can do that). Please follow #12981 for updates. If it turns out that separating page transitions and prefetching into different components makes sense, you may do that as well. For now I am putting this feature request under the same category. |
@aghassemi I think this closely relates to amp-sw's link-prefetch module. In fact, I think that Quicklink would provide a better developer and user experience than the current prefetching which is done manually by the developer adding attributes to links: ampproject/amp-sw#15. |
Consider an <amp-link-prefetch>
<script type=application/json>
{
"el": "main",
"urls": [],
"timeout": 2000,
"timeoutFn": "requestIdleCallback",
"priority": false,
"origins": [
"wordpress.example.com"
],
"ignores": [
"feed=",
"/feed/",
"^https?://[^/]+/(#.*)?$",
"^https://wordpress.example.com/wp-admin/",
"^https://wordpress.example.com/[^?#]+.php",
"^https://wordpress.example.com/wp-content/"
]
}
</script>
</amp-link-prefetch> |
I think this fits the
/to @kristoferbaxter |
We're discussing this issue here: ampproject/amp-sw#15. Prefetching is important, but how we do so should be decided before attempting to port |
Closing since AFAIK we don't plan on staffing an effort to implement a quicklink component. Hopefully one of the two related efforts (amp-sw, or "seamless page transitions") bears fruit. |
Could you create component for quicklink?
https://github.com/GoogleChromeLabs/quicklink
The text was updated successfully, but these errors were encountered: