HTML 5 is latest and one of the important aspects of programming and your interview cannot be completed without HTML 5 interview questions. Following we have answered to the interview questions asked during recent .NET interviews.
Can you tell something about Application Cache in HTML5?
In HTML5 using Application Cache we can make our web application available to client even when there is no internet connection.
What will be the advantage?
There are many. Starting with great performance, highly availability (application will be available for browser even if there is no internet connection) and reduced server load.
How this Application cache is different from normal browser cache?
In traditional browser caching, browser has the ability to cache one or more pages and resources.
There are two drawbacks: -
- It may possible that browser just remove one of the file from cache in some point of time to make rooms for other stuffs. In real life scenario our single page (let’s say customer.aspx) is made up of more than one resources like one or more CSS, one more js file etc. Removal of one of them may make the complete cached resource unworthy.
- There will not be complete control over caching. For example you cannot specify what all CSS or js files will be cached with your actual resource.
What should be done in order to achieve this?
1) First step will be creating manifest file like shown below
CACHE MANIFEST # Some Comment File1.Extension SomeFolder/File2.Extension
CACHE MANIFEST # Ver 1 Customer.js Customer.css CustpmerOrderDetail.aspx
2) Second Step set manifest attribute of html tag( in the main resource you want to cache) to
Also see HTML 5 canvas interview questions asked in one of the interview.
For technical trainings on various topics like WCF (Windows Communication Foundation), MVC (Model View Controller), Business Intelligence, Design Patterns, WPF, TFS and Basic fundamentals feel free to contact SukeshMarla@Gmail.com or visit www.sukesh-marla.com or www.JustCompile.com