Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What prevents HTML pages from taking advantage of progressive rendering?

Tags:

html

rendering

I've notice that some pages begin to render almost immediately, while others sometime have to wait until many or all of the resources (javascript, image, css) have been downloaded. The worst case seems to be for a large page, on a slow connection or server. One specific page I'm looking at comes out to almost 2 MB, with 30 different .js files, a dozen .css files, and 80 image.

I'm aware of the suggestions at http://developer.yahoo.com/performance/rules.html, but what would be preventing the browser from attempting to render the page until the last element has been downloaded?

like image 718
chris Avatar asked Nov 05 '22 04:11

chris


1 Answers

There are a handful of reasons why this may happen. The most common that I see are large tables.

For example, Internet Explorer doesn't like to render a table until it is finished loading.

Each browser is a bit different though, in how they render things that are still downloading.

like image 85
Brad Avatar answered Nov 09 '22 02:11

Brad