fixup! Infrastructure for synchronous script loading

Remove unnecessary flush_layout