I used theme hook called theme_css_alter. There is an array where are the css files. Foreach loop to go through them and unset ones that shouldn't be there. This one goes to your themes template.php file.
Source code viewer
function theme_name_css_alter(&$css) { // don't forget to change theme_name // print_r($css); - to see the css files that are being loaded 'misc/ui/jquery.ui.slider.css', 'misc/ui/jquery.ui.theme.css' ); }Programming Language: PHP