Currently the style.js file has a lot of logic for browser detection in it. This logic should be separated into a different file, e.g. tigerevents.js and the style file should really just contain the rules. If the loader determines that the browser does not support certain required features it will just not register the styles and thus not apply any effects to the HTML elements. Additionally, the style registry hash can be extended to include conditions for applying the style to the element. Those conditions can then include simplified browser tests to apply some effect only to those browsers that support then. E.g.:
style = {
'#headlines_list li': {
requires: browser.isGecko && !browser.isKonqueror,
apply: function(e) {
new FadeItems(e);
}
}
}
Or similar.