mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
55d7176e51
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. |
||
---|---|---|
.. | ||
apps | ||
helpers | ||
meta | ||
public | ||
services | ||
src/cards | ||
views | ||
web |