推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
bridge45

12306 这么大的 js 文件,怎么想的...

  •  
  •   bridge45 · Oct 9, 2016 · 18164 views
    This topic created in 3681 days ago, the information mentioned may be changed or developed.

    直接贴地址: https://kyfw.12306.cn/otn/resources/js/query/train_list.js 下载下来文本 35M,网页流量查看显示 4M...如何的慢,想想就知道了

    原地址:https://kyfw.12306.cn/otn/queryTrainInfo/init

    111 replies  •  2016-10-11 17:59:18 +08:00
    1  2  
    ❮ ❯
    hxiaocai
    hxiaocai
    Oct 10, 2016
    101
    @Quaintjade 这个不是购票页面, 基本没人用。
    murmur
    murmur
    Oct 10, 2016
    102
    @setonfocus 历史在开倒车啊,玩 node 的都在搞服务器渲染
    panlilu
    panlilu
    Oct 10, 2016
    103
    我觉得还挺好啊。。
    vibbow
    vibbow
    Oct 10, 2016
    104
    JS 这么大没什么问题啊...
    liujiangbei
    liujiangbei
    Oct 10, 2016
    105
    好屌,真的
    zzutmebwd
    zzutmebwd
    Oct 10, 2016
    106
    5s 左右 不卡
    goodryb
    goodryb
    Oct 10, 2016
    107
    总想搞个大新闻
    exch4nge
    exch4nge
    Oct 10, 2016
    108
    @iyaozhen 对对, gzip 会处理掉,脑子秀逗了
    shenxian
    shenxian
    Oct 11, 2016
    109
    秒开
    zuotech
    zuotech
    Oct 11, 2016
    110
    我操, 就算是这样用有理由, 也该把 train_no,station_train_code 简写吧, 这样可以省掉一半的容量
    marsLeo
    marsLeo
    Oct 11, 2016
    111
    测试了一下, gzip 大概能压缩到十分之一大小( 7Z 竟然可以压缩到小于 100KB )
    1  2  
    ❮ ❯
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1455 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:25 · PVG 13:25 · LAX 21:25 · JFK 00:25
    ♥ Do have faith in what you're doing.