EnhanceJS
Mal wieder ein spannendes Projekt von der Filament Group: EnhanceJS.
EnhanceJS is a new JavaScript framework (a single 2.5kb JavaScript file once minified/gzipped) that that automates a series of browser tests to ensure that advanced CSS and JavaScript features will render properly before they’re loaded to the page, enabling you to build advanced, modern websites without introducing accessibility problems for people on browsers that aren’t capable of supporting all advanced features. It’s designed to be easily integrated into a standard progressive enhancement workflow: just construct the page using standard, functional HTML, and reference any advanced CSS and JavaScript files using EnhanceJS to ensure they’re only delivered to browsers capable of understanding them.
Im Einsatz könnte das in etwa so aussehen:
<script type="text/javascript" src="enhance.js"></script>
<script type="text/javascript">
enhance({
loadStyles: [
'css/enhancements.css'
],
loadScripts: [
'js/jquery.min.js',
'js/enhancements.js'
]
});
</script>
