Issue metadata
Sign in to add a comment
|
button click handler slower than WebKit
Reported by
jba...@implen.de,
Jun 12 2017
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Steps to reproduce the problem:
open this index.html file:
<!DOCTYPE HTML>
<!doctype html>
<html>
<body>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Implen</title>
<script language="javascript" type="text/javascript">
var toggle = true;
function myFunction () {
if (toggle) {
document.getElementById("demo").innerHTML = "Hello World";
toggle = false;
} else {
document.getElementById("demo").innerHTML = "";
toggle = true;
}
}
</script>
<style>
.centered {text-align:center;}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 72px;
margin: 4px 2px;
cursor: pointer;
}
.text {
font-size: 72px;
}
</style>
</head>
<body>
<div class="centered">
<button class="button" onclick="myFunction()">Click me</button>
<div class="text" id="demo"/>
</div>
</body>
</html>
What is the expected behavior?
Chromium should be at least as fast as WebKit.
What went wrong?
I ran the above HTML / JavaScript on WebKit and Chromium and recorded the behavior with a highspeed camera (1000 fps):
- WebKit: 66 ms
- Chromium: 105 ms
Did this work before? N/A
Chrome version: 57.0.2948.0 Channel: dev
OS Version: Debian Wheezy
Flash Version: n/a
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by nyerramilli@chromium.org
, Jun 13 2017Status: Duplicate (was: Unconfirmed)