I have a view that simply populates the page with objects from a list in my model, but during this, Google Chrome becomes unresponsive and asks whether we want to kill the pages. This is a bit frustrating as IE and FF both work fine (loads instantaneously) and I am not about to start recommending users use IE as a short-term solution (just can't bring myself to do it).
Here is an example of where the page is dying. The loop is populating rows in a table:
For i = 0 To Model.ListOfStuff.Count - 1
@<tr>
<td>@Html.LabelFor(Function(d) d.ListOfStuff(i).SelectedItem, Model.ListOfStuff(i).Name)</td>
<td>
@Html.CheckBoxFor(Function(c) c.ListOfStuff(i).SelectedItem)
@Html.HiddenFor(Function(c) c.ListOfStuff(i).Id)
</td>
</tr>
Next
This contains no more than 900 records, so I'm not sure why Chrome is falling over at this.
So my question to SO, is, how do I optimise this so that Chrome does not fall over? OR, is there a known work around for Chrome becoming unresponsive? I'm clutching at straws here.
Many thanks for any help.