Ghost/core/frontend/helpers
Fabien egg O'Carroll 55d7176e51 🐛 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.
2021-12-08 17:54:37 +02:00
..
tpl Added beta {{products}} helper for tiers list on post (#13267) 2021-09-10 09:30:41 +05:30
asset.js 🐛 Fixed broken assets for theme/design preview 2021-11-03 11:20:04 +01:00
author.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
authors.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
body_class.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
cancel_link.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
concat.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
content.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
date.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
encode.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
excerpt.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
facebook_url.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
foreach.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
get.js Refactored helper registration code into a service 2021-10-05 10:04:02 +01:00
ghost_foot.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
ghost_head.js 🐛 Fixed card scripts executing before DOM is parsed 2021-12-08 17:54:37 +02:00
has.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
img_url.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
is.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
lang.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
link_class.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
link.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
match.js Added basic {{match}} helper 2021-10-14 19:36:56 +01:00
meta_description.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
meta_title.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
navigation.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
page_url.js Moved helper proxy into a service 2020-04-08 17:22:44 +01:00
pagination.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
plural.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
post_class.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
prev_post.js Refactored helper registration code into a service 2021-10-05 10:04:02 +01:00
price.js Removed core @tryghost pkg usage from f/e proxy 2021-09-28 12:19:02 +01:00
products.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
raw.js Added raw handlebars helper 2020-04-06 17:26:50 +01:00
reading_time.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
t.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
tags.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
title.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
twitter_url.js Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
url.js 🐛 Fixed malformed URLs crashing the url helper 2021-12-02 10:34:24 +01:00