fixed css detection for loadcss functions