PageSpeed 相关文档
为 NGINX 编译 PageSpeed 支持
ngx_pagespeed
Configuring mod_pagespeed Filters
加载性能测试工具
WebPagetest
Gomez
deepkolos

在移动端微信内置浏览器 , overflow 的 hidden/scroll 的 switch 花销好大啊, 要 170+ms , 手机 CPU 骁龙 801

  •  
  •   deepkolos · Aug 11, 2017 · 3490 views
    This topic created in 3231 days ago, the information mentioned may be changed or developed.

    手机上没有这个问题有, TIM 的内置浏览器 , 已测试遨游, 羽浏览器

    微信版本 6.5.10

    测试页面

    <!DOCTYPE html>
    <html lang="en">
    <head>
    	<meta charset="UTF-8">
    	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    	<meta http-equiv="X-UA-Compatible" content="ie=edge">
    	<title>Document</title>
    	<style>
    		*{
    			padding:0px;
    			margin:0px;
    		}
    		.outerBox {
    			width:100vw;
    			height:100vh;
    			overflow: scroll;
    		}
    		.hidden {
    			overflow: hidden!important;
    		}
    		.innerBox {
    			width:200%;
    			height:100%;
    			background: url(blance.png);
    		}
    	</style>
    </head>
    
    <body>
    	<ul class="outerBox">
    		<li class="innerBox"></li>
    	</ul>
    </body>
    <script>
    
    	var $outerBox = document.querySelector('.outerBox')
    		$innerBox = document.querySelector('.innerBox');
            
    	$outerBox.addEventListener('touchend',function(){
    		$outerBox.classList.toggle('hidden');
    	}, false);
    </script>
    
    </html>
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5882 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:09 · PVG 11:09 · LAX 20:09 · JFK 23:09
    ♥ Do have faith in what you're doing.