为什么IE10开大html(大js)太慢了?

时间:2014-05-24 08:50:39

标签: javascript html web large-files

问题是我们用ie10打开一个大的html太慢了,但是ie8或ie11非常快,有谁知道为什么?在示例代码中,“boundaryCoors”是一个太长的文本,而html大小差不多是18M。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%;">
   <head>
        <script type="text/javascript">
            var MAP_LAYER_DATA ={ 
                districtName:"全国", 
                districtNo:"100000000", 
                districtLayer:"province", 
                boundaryCoors: [[80.508, 20.825,130.111, 50.555]], 
                subDistrict:[ {
            districtName:"北京市",
            districtNo:"110100000",
            districtLayer:"country",
            bounds:{left:115.42374,bottom:39.43962819,right:117.5066874,top:41.06081826},
            boundaryCoors:"very long text",
            subDistrict:[]}];
        </script>
    </head>
    <body class="tundra">
    </body>
</html>

0 个答案:

没有答案