BAP-6590: Base Client Side Architecture

the order of resource loading and execution, keeps the global scope