improve shortcut algorithm for getStyle
improve DOM.importStyles