in uiwebview,this page will be langging

Here is the html code


<!DOCTYPE html>

<html>

<head>

<style>

html{

background-color: gainsboro;

}

input {

padding-bottom: 0;

border-bottom: 0;

width: 375px; /* width beyond the screen */

}

</style>

</head>

<body>

<input/>

</body>

</html>


I'm facing this problem only in uiwebview. When I input, I'm facing lag. This only happens in ios uiwebview.

Could anyone please identify the problem?

Is there a problem with the uiwebview?

Thanks in advance.

Replies

>This only happens in ios uiwebview.


Which is deprecated - suggest you try WKWebView.


See:

https://developer.apple.com/documentation/webkit/wkwebview?language=objc

https://forums.developer.apple.com/message/328564#328564