1
0
Fork 0
forked from OpenNeo/impress
impress/app/views
Emi Matchu 1972ecf043 Use async instead of defer for analytics script
We had this issue on Impress 2020 and I fixed it over there too. I guess
it went less noticed here on Classic, because it's a more
progressively-enhanced site in general (and this failure case is an
interesting argument for that architecture! lol).

On Impress 2020, I wasn't sure if the "waits for the document to load"
behavior of the `defer` attribute was necessary to the script, so I
chose to keep `defer` but move it _after_ the other scripts.

This time, I dug in a bit more, and found a Plausible author saying
that the choice was kinda arbitrary; and another person who had the
same issue as me, who said they switched to `async` and it worked well.
So, that's what we're doing now, too!

https://github.com/plausible/analytics/discussions/1907#discussioncomment-2754499
2024-08-31 12:15:27 -07:00
..
about Add more NeoPass details to about page 2024-03-13 17:55:23 -07:00
alt_styles Remove outdated info from Alt Styles page 2024-05-29 18:47:06 -07:00
application Use async instead of defer for analytics script 2024-08-31 12:15:27 -07:00
auth_users Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
closet_hangers Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
closet_lists Add trade warning to closet list form 2024-04-16 16:53:30 -07:00
contributions i18n for contributions#index 2013-01-24 18:23:18 -06:00
devise Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
fundraising Update some stylesheets to use new page_stylesheet_link_tag helper 2024-05-14 16:10:09 -07:00
item_trades Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
items Remove SSW link, does not work on neopets anymore 2024-08-30 01:46:59 -04:00
layouts Prevent analytics script delays from blocking other JS on the page 2024-07-07 21:11:14 -07:00
neopets_page_import_tasks refactor importing 2015-07-27 13:25:24 -04:00
outfits Remove survey link from NeoPass announcement, schedule it to vanish 2024-05-02 13:28:37 -07:00
pets Add better support for hashed pet names 2024-08-31 12:07:52 -07:00
sitemap Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
users i18n for contributions#index 2013-01-24 18:23:18 -06:00