remove layout context from loading function for static css