Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor Templates/Front End Assets #123
This pr focuses mainly on performance and page weight, but it also cleans up folder structures and changes some tooling for the front end assets. Summary:
The page loads pretty quickly now. It wasn't slow before, but I did a bit of benchmarking:
The XHR request to the roasters endpoint was delaying roasters appearing on the map by a full 2 seconds. I'm now just grabbing them from the DOM in the roasters list, which is working great.
Most of the weight/requests is from the map tiles for the total, so the gains proportionally are less, but still not bad:
The DOMContent Loaded improvement is mostly just the different in network latency between local and pdxroasters.com which I'm using for the benchmark, but all the other gains are real.
Sorry this pr is so huge, I originally wanted to just remove the API request to the roasters on the homepage and it was really hard because everything was awful. Sort of went like this: