开发者

IE7 and Scriptaculous Autocompleter running out of memory

In IE7 only, I'm getting a weird out of memory error when I run my Autocompleter.Local. The content downloaded is around 1 MB in terms, but it's done in the background (in a JSON file).

function create_listeners() {
 jQuery('.auto_complete_field').each(function() {
   var terms_id = 'terms_' + jQuery(this).attr('id');
   jQuery(this).after('<div class="auto_complete" id="' + terms_id + '"></div>');
//   jQuery(this).attr('value', 'test');
   new Autocompleter.Local(jQuery(this).attr('id'),terms_id, terms, {fullSearch:false, frequency:0, minChars:1});
 })
}

Anyone have any idea why this would affect IE 6/7 on开发者_StackOverflow中文版ly?


You might be able to use dynaTrace Ajax Edition to find the bottleneck.


It appears that IE7 has a 1 MB blob size limit on variables, and that's what we were running into here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜