![]() What next? □ It will affect the size of the file. Write comments wherever we write complex logic.We use meaning full names for defining variables.We follow following rules normally while writing css or js. Normally how we write or JavaScript and css. Fewer files mean fewer response times and it means quick response time. Using this concept we can create bundles of js and css files. It let us combine multiple files into one file at runtime. Now imagine the situation when we have more number of css and js files. To get one complete view browser makes 7 requests (one for view, 3 for js and 3 for css). It will affect the overall response time of the view. When browser receives the view in response, it comes to know about these references so it will make 6 more requests to server asking for the referenced files.Now the view contains reference to 3 js files and 3 css files. ![]() ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |