The recent changes filter project has JS-only elements that are late loaded into the page, but that we need to reserve visual space for using CSS. VE has a similar late loading of controls in edit mode.
And I basically just implemented something similar for a print control: https://gerrit.wikimedia.org/r/#/c/350197/
I think that this will be more common pattern as more JS elements are added to our UI, that might need some time to be generated, and that we should probably implement some centralised style and class naming convention for it.