CodeYourFuture / CodeYourFuture/curriculum

Refactor: bring order to the scripts loading

Open
#840 0 comments 0 reactions 0 assignees View on GitHub
🐂 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.