RunDMC icon indicating copy to clipboard operation
RunDMC copied to clipboard

ideas to speed up initial load of docs

Open dsokolsky opened this issue 8 years ago • 0 comments

From @hunterhacker

I notice that docs.marklogic.com takes a long time to load initially, when I'm in an overseas location. Lots of net waiting. I suspect one thing that's slowing things down is there's a big .js file that isn't cached and isn't compressed. Making it both cached and compressed would really speed things up. The fact it has a timestamp in its name means you can send headers to perma-cache it. It's 760 KB which is a good chunk pulling across the Pacific.

Doing similar with CSS would give even more boost.

I suspect it does an XHR or something pull to get the API docs? Even when the rest of the page is loaded those take a while too to render. So maybe some compression or (non-perma) caching there too would help.

jason

dsokolsky avatar Jul 13 '16 23:07 dsokolsky