Grinnz / perldoc-browser

Perldoc Browser
https://perldoc.perl.org
Artistic License 2.0
55 stars 21 forks source link

slow on /perluniprops #16

Closed daxim closed 5 years ago

daxim commented 5 years ago

Despite its size, https://perldoc.pl/perluniprops loads fine with 3rd party domains blocked (bootstrapcdn.com, cloudflare.com, jquery.com).

With them enabled, browser performance takes a nosedive: scrolling becomes choppy, browser UI/chrome interactivity lags seconds behind, renders only up to the big table, complete page only finishes after 10 seconds. I guess it's the fault of syntax highlighting, but I didn't verify. Can this be done async or otherwise improved?

Grinnz commented 5 years ago

I can reproduce the choppy scrolling (which I agree is probably from syntax highlighting javascript) but not the slow loading time. What browser are you using? Can you use your browser debug tools to determine where the delay occurs?

bpj commented 5 years ago

Same problem on Firefox 67.0.1 FF almost freezes completely.

daxim commented 5 years ago

As suspected, it's the syntax highlighter. Also Fx 67

Grinnz commented 5 years ago

I have disabled syntax highlighting on any verbatim block with over 5000 characters, which should prevent this issue. Thanks for the report.