question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to make ReLaXed faster ?

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Zulkocommented, May 21, 2018

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.

0reactions
benperitoncommented, May 8, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found