hotosm-website icon indicating copy to clipboard operation
hotosm-website copied to clipboard

Reducing website load

Open ramyaragupathy opened this issue 6 years ago • 3 comments

_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

image

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 like imgur or flickr and update the links in the relevant md 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?

ramyaragupathy avatar Jan 21 '19 05:01 ramyaragupathy

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 avatar Jan 21 '19 12:01 ramyaragupathy

@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?

mgroovyank avatar Mar 15 '19 11:03 mgroovyank

@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.

bismitaguha avatar Mar 15 '19 17:03 bismitaguha