I thought about that, but no. At least this https://github.com/yui/yui3/blob/master/src/yui/js/yui.js#L976-L983 is necessary.