Created issue #3025696: JavaScript executed before block is rendered