hotosm-website
hotosm-website copied to clipboard
Reducing website load
_site
folder is about 320MB. Here's a dissection of the load:
uploads
- collection of all graphics supporting the blog items occupies 238 MB followed by,
downloads
- 22 MB, all downloadable reports, toolkits live here
updates
- 20MB, this is the content fodler for all the blogs
How could we reduce the load?
- Fetch map related data files from S3 insted of bundling in Github. This cuts the load by 2 MB
- Move all graphics in
_uploads
to a third party site likeimgur
orflickr
and update the links in the relevantmd
files. Reduces 230 MB load - Consider moving
downloads
contents to cloud - Move away
updates
section to a blog provider
For now I'm working on fetching json data files from cloud instead of bundling in website. @smit1678 @dakotabenjamin @arunasank - what do you all think here?
Just making it clear here - all these changes significantly improve the build time. Also seeing a change in heap memory when the files were moved out. Otherwise still seeing it takes a similar time to load data on map (~5seconds)
@ramyaragupathy Can I work on moving all graphics in _uploads to a third party site like imgur or flickr and update the links in the relevant md files?
@ramyaragupathy I find this an issue which will solve many problems. I feel the pdf files and images should be moved to different locations or to the cloud. I would love to work on this.