Is there a way of optimising a jQuery loop when dealing with a fairly large amount of data. The browser tends to lock while the data is being looped through, and anything below IE8 gives a 'script running too slow' message.
I'm just using a jQuery.each(data, function(i, val) to get the field name and value for the field from the database and then automatically populate the field with that value.
The data is taken from a json file that is generated on login.
Any suggestions would be appreciated.