How to make ReLaXed faster ?
See original GitHub issueThis issue is intended as general discussion research on how to improve user experience by making rendering faster while avoid partially-rendered PDF documents.
Open questions:
- How to make sure the page is fully rendered before generating a PDF ? Right now this done by
- Allowing figures and diagrams to be generated separately and included in the page as images/svgs, so that there is no rendering lag.
- Waiting until “networkidle2” (this line) i.e. until no network exchanges, before rendering. I am wondering if this is too conservative, some pages dont need that and in my experience it really adds a lot of overhead. Would
domContentLoaded
work better in most cases ? If that’s the case, we can always let users a choice.
I am wondering if other solutions would make ReLaXed faster:
- Would puppeteer’s
page.reload()
be faster ? - would a “hot reload” of the page where only a “diff” of the DOM is changed make the rendering faster ?
- Are there options Chromium startup options that would make it faster ?
Any other suggestions ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to Grow Relaxed Hair: 10 Steps (with Pictures) - wikiHow
1. Keep your hair moisturized daily. The biggest concern after relaxing is often the level of dryness in your hair. You will need...
Read more >10 Reasons Why Your Relaxed Hair Hasn't Gotten Longer
Rotate gentle cleansers into your relaxed hair regimen like moisturizing sulfate-free shampoos or co-washes which are gentler on your hair and don't strip...
Read more >18 Quick Ways To Relax Instantly, According To Science
So, if you are looking for some helpful tips and strategies to relax, then these tips can make you calm down in less...
Read more >5 Ways To Thicken Relaxed Hair - Essence Magazine
My hair thrives when I relax every 10-12 weeks. By stretching out my relaxers I'm giving my hair a break and allowing my...
Read more >I Grew Long, Relaxed & Healthy Hair! Here Are 5 Tips So You ...
1. Protective Styling The best way to grow out your hair is to make sure your ends are protected 80% of the time....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since v0.1.4 ReLaXed is much faster, and also gives a better breakdown of it’s different rendering steps, which should make it easier to optimize particular cases in the future. Turns out that mathjax rendering was also a bottleneck so it is now optional and replaceable by the faster Katex.
Yea, there’s quite a big jump! It does seem that the first run is always slower than the rest, not quite sure why that is, it does skew the average slightly but potentially some low hanging fruit to speed it up overall.