如果我的页面包含以下内容:
1. HTML with text and images.
2. Lots of reference to CSS and Large JS Files.
3. Within HTML a call similar to one below:
$(document).ready(function () {
$.ajax({
url: "http://fiddle.jshell.net/favicon.png",
beforeSend: function( xhr ) {
xhr.overrideMimeType( "text/plain; charset=x-user-defined" );
}
})
.done(function( data ) {
if ( console && console.log ) {
console.log( "Sample of data:", data.slice( 0, 100 ) );
}
});
}
有人可以澄清一下我的理解是否正确,首先加载哪个?
- 加载所有 HTML 和图像。
- 加载 CSS 并应用 CSS 样式
- 然后,调用 $.ajax 调用。
- 渲染整个页面。