Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox 4 doesn't render partial pages

I have an ASP.NET MVC page which contains a table, where every row takes some time to load. So I'm calling Response.Flush() after every row is rendered.

IE9 behaves the way it should: displays rows one by one. FF4 on the other hand, displays the page only when it finished loading completely, even though I can see in FireBug's Network tab that the rows are being received one by one.

Is there something I could be doing wrong on the server-side? If not, is there something I can do to my Firefox, so that it displays the page the way I want?

like image 242
svick Avatar asked Oct 10 '22 23:10

svick


2 Answers

I would try using AJAX to fill the table. Maybe a row per call, maybe whole set at once.

like image 63
Alexander Prokofyev Avatar answered Oct 14 '22 04:10

Alexander Prokofyev


Consider closing your document with </html> and add the extra rows in script; <script> tags may (in practice) follow </html>. Not a real AJAX solution, not strictly correct, but potentially a lot easier on your serverside.

A similar, but more correct solution would be to insert the script just before the </body>.

See also When does reflow happen in a DOM environment?

like image 28
MSalters Avatar answered Oct 14 '22 02:10

MSalters