CodeYourFuture / CodeYourFuture/curriculum
Refactor: bring order to the scripts loading
Open
🐂 Size Medium
refactor
- Dominant language
- HTML
- Stars
- 76
- Forks
- 135
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 20
Description
**Describe the bug**
We load a lot of tiny scripts. Perf is 100 so it's not a disaster or anything, but it is untidy.
**What is wrong with this content?**
**How could this be fixed?**
concat and min scripts in the footer? Partials should be fairly encapsulated so we are loading them in the partial atm.
I tried writing to a page store but Hugo gave me a gnarly race condition that I could not understand at the time (and I haven't looked since)
This is NBD obviously - the largest script is 4kb.
**Link to content**
**Additional context**
**Who else might need to know about this?**
Contributor guide
Assessment
This issue has not been assessed yet.