fredshare
fredshare
可以增加苹果系列的区分,3、4、5、6可以通过屏幕高度window.screen.height辅助window.devicePixelRatio来判断。比如: ``` javascript var iosVersioin; if (detector.device.name == "iphone") { var height = screen.height; if (height == 480) { iosVersioin = "4、4s" } else { if (height == 568) {...
@hehongwei44 多谢支持~~
@hehongwei44 实际测速就是用performance接口的,移动端支持度在40~60%左右。
不支持performance的情况下,我们做了domready、onload、白屏时间等的统计,通过埋点的方式进行计算统计,比如domready,head最前面埋一个点,html尾部卖一个点,两个之间的差值大约等于domready时间;onload就是用DOMContentLoaded触发的时候打点等。 我记得还有多普勒测速,这个是在performance标准出来之前很多公司有使用到的方案。
 哦,这个涉及到上报系统的数据结构定义,可能一个业务下有多个站点,每个站点下有不少页面,需要针对每一个业务、站点、页面分别申请不一样的id来区别
@hehongwei44 这个demo中的函数是一个标准的上报performance接口的函数 如果需要上报比如dom树解析耗时,你需要前端算出dom树解析,然后上报。计算方法: 
@hehongwei44 是的,前端封装好了,后台来区分比较麻烦,需要维护一大堆map对应表
@hehongwei44 
@hehongwei44 你可以看看这个http://www.cnblogs.com/_franky/archive/2011/11/07/2238980.html 上面有详细的解释
@reaperme ,在responseStart开始的时候,页面就开始渲染了。