Improve scroll bottlenecks rules

This commit is contained in:
Gaël Métais
2015-05-07 17:10:01 +02:00
parent 8c79f39389
commit f8f792645b
5 changed files with 40 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
<html>
<head>
<title>Scroll page</title>
</head>
<body>
<h1>Simple page</h1>
<script>
window.onscroll = function() {
document.getElementsByTagName('window.onscroll');
};
window.addEventListener('scroll', function() {
document.getElementsByTagName('scroll on window');
});
</script>
</body>
</html>