1

我们目前正在通过重新设计更新我们的网站。但是,该站点在 Windows XP / IE 8 中冻结,但我们的开发团队不确定原因。IE8 的版本是 8.0.6001.18702。

这是标头中跨站点使用的 JavaScript。是否存在可能冻结 IE8 的已知冲突?

<script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.min.js?D"></script>
<script type="text/javascript" src="/misc/drupal.js?D"></script>
<script type="text/javascript" defer="defer" src="/sites/all/modules/admin_menu/admin_menu.js?D"></script>
<script type="text/javascript" src="/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js?D"></script>

<script type="text/javascript" src="/sites/all/modules/colorbox/js/colorbox.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/colorbox/styles/default/colorbox_default_style.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/superfish.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/jquery.bgiframe.min.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/nice_menus.js?D"></script>
<script type="text/javascript" src="/sites/all/libraries/qtip//jquery.qtip-1.0.0-rc3.min.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/qtip/js/qtip.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/spamspan/spamspan.compressed.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/thickbox/thickbox.js?D"></script>

<script type="text/javascript" src="/sites/all/modules/views_slideshow/js/views_slideshow.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/custom/rra_helper/js/rra_helper.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/nodequeue/nodequeue.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/ctools/js/ajax-responder.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/boxes/boxes.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/views/js/base.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/views/js/ajax_view.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/jquery_update/replace/jquery.form.js?D"></script>
<script type="text/javascript" src="/sites/all/themes/chi/js/jquery.selectbox/jquery.selectBox.min.js?D"></script>

<script type="text/javascript" src="/sites/all/themes/chi/scripts.js?D"></script>
<script type="text/javascript" src="/sites/all/themes/chi/jquery.dataTables.js?D"></script>
<script type="text/javascript" src="/sites/all/themes/chi/js/menutodropdown.js?D"></script>
<script type="text/javascript" src="/sites/all/themes/chi/js/jquery.tipsy.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/text_resize/jquery.cookie.js?D"></script>
<script type="text/javascript" src="/sites/all/modules/text_resize/text_resize.js?D"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "admin_menu": { "margin_top": 1, "tweak_tabs": 1 }, "colorbox": { "transition": "elastic", "speed": 350, "opacity": "0.85", "slideshow": false, "slideshowAuto": false, "slideshowSpeed": 2500, "slideshowStart": "", "slideshowStop": "", "current": "{current} of {total}", "previous": "« Prev", "next": "Next »", "close": "Close", "overlayClose": true, "maxWidth": "100%", "maxHeight": "100%" }, "nice_menus_options": { "delay": "100", "speed": "fast" }, "qtip": { "target_position": "topRight", "tooltip_position": "bottomLeft", "show_speech_bubble_tip": true, "show_speech_bubble_tip_side": false, "color": "blue", "border_radius": "3", "border_width": "3", "show_event_type": "mouseover", "hide_event_type": "mouseout", "show_solo": true }, "spamspan": { "m": "spamspan", "u": "u", "d": "d", "h": "h", "t": "t" }, "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" }, "getQ": "node/3", "views": { "ajax_path": "/views/ajax", "ajaxViews": { "views_dom_id:4b8e8b3a493bcb7f11628f340513d203": { "view_name": "related_publications", "view_display_id": "block_1", "view_args": "3", "view_path": "node/3", "view_base_path": "case-studies-all", "view_dom_id": "4b8e8b3a493bcb7f11628f340513d203", "pager_element": 0 } } } });
//--><!]]>
</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var text_resize_scope = "content";
    var text_resize_minimum = "10";
    var text_resize_maximum = "25";
    var text_resize_line_height_allow = 0;
    var text_resize_line_height_min = "16";
    var text_resize_line_height_max = "36";
//--><!]]>
</script>
4

1 回答 1

1

首先,@MyStream 是正确的——您应该考虑使用 JS 库管理器。我建议你使用 Require.JS 或类似的东西。

其次,当浏览器像您描述的那样冻结时,通常是因为无限循环或脚本中某处发生的过度循环。

要开始解决您的问题,我建议您不要在这里和那里加载一些文件,以尝试准确确定是哪个文件导致减速。一旦找到罪魁祸首,请检查并确定问题所在的代码,然后修复它。

于 2012-08-28T21:21:48.837 回答