asp.net - Maximizing parallel downloads for website -
I am reading articles about how to speed up websites through the service of static content from the cookies domain. We have an ASP.NET website containing links to images / CSS / JS
& lt; Script type = "text / javascript" src = "/ js / something.js" & gt; & Lt; / Script & gt;
I am testing static content filters from the article and it seems that working well for situations like above, however, we also have many CSS files like: < / P>
background-image: url (/images/something.jpg)
Static content filter will not work for these conditions because our many image location css Defined in files, is there a good way to work on this?
Every time we have the project loaded on local development machines, we clearly want all the files to serve from the local host, so we can not do strict coding at all these places.
Is there any other solution or can we change this to change this work?
You will need to change your CSS files You may need to create a "deployment" script Which modifies the flyer files before moving from your Dev machine to the server, but you can not go around the fact that the full path should be hardcoded to the server's CSS
(when Until you load all your images with javascript Just do it, then modify your style, etc., a view which has its own problems)
Comments
Post a Comment