Firefox 4 不渲染部分页面
我有 一个 ASP.NET MVC 页面,其中包含表,其中每一行都需要一些时间来加载。因此,我在渲染每一行后调用 Response.Flush() 。
IE9 的行为方式应该如此:一行一行地显示。另一方面,FF4 仅在完全加载完成时才显示页面,尽管我可以在 FireBug 的“网络”选项卡中看到正在逐一接收行。
我在服务器端可能做错了什么吗?如果没有,我可以对我的 Firefox 做些什么,让它按照我想要的方式显示页面吗?
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?
发布评论
评论(2)
我会尝试使用 AJAX 来填充表格。也许每次调用一行,也许一次整组。
I would try using AJAX to fill the table. Maybe a row per call, maybe whole set at once.
考虑使用
关闭文档,并在脚本中添加额外的行;
标签(实际上)可以遵循