stricter type checking for css and js while loading files