height is adjusted to preloaded html elements, but not asynchronously loaded ones