PerfCascade icon indicating copy to clipboard operation
PerfCascade copied to clipboard

Server-side rendering

Open micmro opened this issue 10 years ago • 5 comments

In sitespeed.io we render the pages once and run them without a server, so it would be cool if we could prerender the pages that show the waterfall (meaning both functionalities to load the HAR using JS and render it in nodejs).

micmro avatar Dec 20 '15 11:12 micmro

I think a first version could be to just generate the SVG and skip the javascript hooks, then we could start to test to include the viewer and then add the extra functionality later.

soulgalore avatar Mar 10 '16 17:03 soulgalore

Perhaps we could use node-jsdom or so to be able to re-use a good bit of the code I've written so far.

micmro avatar Mar 12 '16 08:03 micmro

Yes, seems that it maybe could work, would be cool to test.

soulgalore avatar Mar 12 '16 08:03 soulgalore

I'd recommend to spend a bit more time on the FE-only version for now to harden it a bit more, so we don't need to worry about 2 versions. Though it it works without much changes it would be quite slick to have. Do you wanna give it a try?

micmro avatar Mar 12 '16 08:03 micmro

yep I'll test it later this week!

soulgalore avatar Mar 12 '16 09:03 soulgalore