add switch to enable yui loader

add switch to enable yui loader