DJTommek / better-location

Telegram bot for parsing and generating various of location formats.
https://t.me/BetterLocationBot
MIT License
8 stars 2 forks source link

Web - speedup page load #84

Open DJTommek opened 2 years ago

DJTommek commented 2 years ago

If some location page is opened, everything is loaded first and then rendered. This cause significant TTFB, before external data are loaded.

External data = data that can't be calculated but needs to be requested from another server, such as:

Solution

Implementation notes:

TODO

DJTommek commented 2 years ago

All mentioned external data endpoints are really fast except gathering elevation info (AMSL) which is timeouting (5 seconds). So currently solved via disabling it by default (see commit 8161e9c73b9c248304327668bd5468a16590d71e), but can be manually enabled by adding GET parameter elevation=true, for example: