I'm recently working on a project and find a weird problem in Safari on Mac. When safari loads a web page with too many input text fields, it becomes slow when focusing and typing in these fields.
I made a simple php page to test. The code is listed below:
<?php
for ($i = 0; $i < 1000; $i++) {
echo "<p>
<input type='text' />
<input type='text' />
<input type='text' />
<input type='text' />
<input type='text' />
</p>";
}
?>
Then open it in Safari 8.0 on Yosemite or Safari 7.0 on Mavericks, try to type something in some fields, you will find Safari responses very slow while typing.
But if opening this php page in Firefox or Chrome, they response typing very quick and at a normal speed.
I also try to use some editable div blocks to replace the input text fields, I found in Safari these editable div responses typing very fast and not like the input fields.
Is there anything special for Safari to responses typing in the input text fields?