🐛 Fixed card scripts executing before DOM is parsed
🐛 Fixed card scripts executing before DOM is parsed

no-issue

Using the async attribute means that the script is downloaded in
parallel with the parsing of the html into DOM, and then executed upon
completion. This means that the script cannot be sure that particular
parts of the DOM exist as it may not have finished parsing. This has
resulted in bugs with the new toggle card not working.

Switching our script to use the defer attribute means that the script is
still downloaded in parallel with parsing, but it is not executed until
parsing is complete. This means that the script can safely access the
DOM.

TryGhost/Ghost,TryGhost/Ghost,e10/Ghost,TryGhost/Ghost,e10/Ghost