how to change, in CSS files, src attribute for images dynamically at deploy? (ASP.NET Web Forms) -
i creating asp.net web forms website , need optimze loading time of website. 1 of methods make images load dfferent servers.
for images exposed through aspx pages or user controls use utility transforms relative link of resourses absolut one, linking preferred server resource.
i need able same thing images loaded css files, meaning each image going loaded css file need change src attribute prefered one. know tool this, or solution can apply problem ???
there couple of options:
- transform css files @ build time , serve them static files
- make css files dynamic , let asp.net populate paths images based on existing setting
there number of ways of doing either of above. here links might give ideas:
or use asp.net theming support have 2 themes, 1 development , 1 production. though i'm not sure that's great option.
Comments
Post a Comment