remove dead code path, add css-loading only function