Comments (5)
Thanks for the details @kireerik.
I added the prerenderAndPrefetch
option to example/index/index/site/index/main.js#L10
and it looks like the resume page is still prefetched as expected, speculation rules is injected and the page is prerendered:
Just a side note that the latest quicklink release has not included the update to remove 1 prerender limit, hence the resume page is not included in the speculation rules.
Did you try with prerenderAndPrefetch
or any other option to enable prerendering mode?
from quicklink.
I tried the prerender
option. Now I see that the script is added in that case as well. However it seems like the (added) page is not prerendered.
Can you release
?
from quicklink.
performance.getEntriesByType('navigation')[0].activationStart
is 0
(related article section: https://developer.chrome.com/blog/prerender-pages/#detecting-prerender-in-javascript)
from quicklink.
I tried the
prerender
option. Now I see that the script is added in that case as well. However it seems like the (added) page is not prerendered.
@kireerik Great to see that the prerender option works to add the speculation rules on your page. Which tool did you use to observe whether the page is prerendered successfully. This new preloading panel in DevTools and testing it in Canary will be the most reliable way to test.
Can you release
?
As for the release, hope it can be released soon too. @XhmikosR / @addyosmani have you planned for the next release yet? Thank you!
from quicklink.
@hadyan: IIRC, @addyosmani wanted to make the next version a minor release (I personally would land any other breaking changes and make it v3.0.0 to be safe since the dist file filenames have changed IIRC).
I don't have push rights on npm AFAICT so it's up to @addyosmani to cut the new version :)
from quicklink.
Related Issues (20)
- Allow multiple Speculation Rules HOT 6
- Unrelated Issue, please delete this.
- minConnectionType option
- Switch from mocha to uvu
- site: add SRI hashes for CDN links
- el option not working as it should HOT 1
- Fix Prerender Support HOT 4
- site: add missing `alt` attributes HOT 3
- Mark peerDependencies as optional
- site: use unique page descriptions HOT 1
- infra: Redirect www domain to root
- Document the modern bundle
- No prefetching occurs for duplicate links
- site: use the files from dist folder instead of the CDN HOT 2
- withQuicklink can't not support typescript HOT 1
- Avoid Triggering Requests while offline
- quicklink.prefetch need add option crossorigin attr,support prefetch cross origin resources
- Quicklink causes desynchronizations between pages for users login and cart counter
- Update request for "quicklink" library to fix CORS errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quicklink.