-
Notifications
You must be signed in to change notification settings - Fork 107
Ajax loads are big, slow #15
Comments
Hi Kevin, Thanks for the notice. Raf and I are very busy with our main jobs right now, but I'd be interested to hear your thoughts on how to make DocHub faster, especially if this is something you'd like to implement. As it stands now, DocHub pulls all of its documentation for a particular language/framework when that tab is clicked. The search is then entirely clientside, and there are no other JSON requests (if that's what you mean by pulling down less Javascript on every search). What do you mean by deep links? Kevin |
Maybe you've thought of this, but I was thinking about one or more of the following optimizations:
It would require splitting out the .json files into more pieces, but that probably could be achieved in the scraper. I also noticed you're loading a lot of small Javascript files on the frontend, which means they can only be downloaded 6 at a time (same goes with the images from mozilla.org). This is something you'd have to configure, but if you could split resource loading across multiple subdomains it would help load the page faster. |
Kevin, You might also consider running dochub locally, rather than using http://dochub.io. |
Ah, ok, I gotcha. I've not opened the Python tab, though the jQuery & PHP ones take a good bit of time to load up. Your solution definitely sounds like a valid way forward; a sort of "lazy loading" as it's sometimes called. |
Yes, it is.
This is totally wrong way. There will be too much ajax requests and high traffic. The doc base is not modifyed realtime or so and it can be effectively cached as single json file for each docs section (php, jquery, html and so on). Can code my ideas but have no time for now. |
Hi,
I love the design of dochub but it's currently too slow to be my day-to-day reference. I appreciate the search bar appearing early, but it's still tough to use This could be mitigated either with deep links or by pulling down less Javascript on every search.
Would be happy to help work on this; I appreciate your thoughts.
Kevin
The text was updated successfully, but these errors were encountered: