Thread:Talk:ResourceLoader/Conditional script inclusion (e.g. if lt IE 9 )/reply

This is currently not supported by ResourceLoader. However MediaWiki in general (the OutputPage class that builds the page output) does support it. You may use one of the following two methods:


 * To load a complete module: Use  in combination with  . For example:


 * To load a single css file (raw, without minification and other ResourceLoader processing): Use  where url points to a file directly. For example:

Alternatively you coud use  from within your main module code, to load it on-demand when you need it and the browser is IE. Like this