开发者

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 cou开发者_高级运维ld 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?


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


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜