Js dom loading order

adom ();
bdom ();
adom is a method for dynamic rendering of dom, and bdom is another method for dynamic rendering of dom. Now you want to perform bdom (), only after all the dom nodes in adom have been rendered, but now the two methods are difficult to control. There are always bdom rendering, adom and unrendered, because adom and bdom have been used in many places, do not want to go to a single place to do processing, is there any feasible way.

Mar.16,2021

bdom this method body uses setTimeout to wrap a layer

bdom = () = > {

setTimeout(bdom)

}

Menu