{ "id": "168828", "key": "AC-5072", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-08-01T22:45:44.000+0000", "created": "2017-07-05T15:52:28.000+0000", "labels": [ "android", "performance", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-01T22:45:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "A webview containing remote content is extremely laggy. After a swipe gesture it takes literally seconds until the webview starts scrolling. The problem does not occur on devices with Android 4 or Android 5. Also not all Android 7 devices seem to be affected. We have successfully tested on another Android 7 device.\r\n\r\nTried to add borderRadius = 1, hardware acceleration and tested with and without caching. None of the options have any effect.\r\n\r\nCode to test:\r\n\r\n{code:java}\r\nvar webview = Ti.UI.createWebView(\r\n{\r\n\tleft: 0,\r\n\ttop: '10%',\r\n\twidth '100%',\r\n\theight: '90%',\r\n\tbackgroundColor: '#ffffff',\r\n\tscalesPageToFit: false,\r\n\tenableZoomControls: false,\r\n\thideLoadIndicator: false\r\n});\r\n\r\nwebView.addEventListener('error', function(e)\r\n{\r\n\t// alert the error\r\n});\r\n\t\t\t\r\nwebView.addEventListener('beforeload', function(e)\r\n{\r\n\t// show activity indicator\r\n});\r\n\t\r\nwebView.addEventListener('load', function(e)\r\n{\r\n\t// hide activity indicator\r\n});\r\n\r\nwebView.url = 'some_remote_url';\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: WebView with remote content scrolls extremely slowly", "creator": { "name": "c.fox@oput.net", "key": "c.fox@oput.net", "displayName": "Christopher.fox", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "c.fox@oput.net", "key": "c.fox@oput.net", "displayName": "Christopher.fox", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Device: Honour 8\r\nAndroid-Version: 7.0\r\nTitanium SDK: 6.1.1GA", "comment": { "comments": [ { "id": "423775", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Make sure you follow the guide of best practice in http://docs.appcelerator.com/platform/latest/#!/guide/The_WebView_Component\r\n\r\n\"Content displayed in a web view must be tuned for mobile browsers for best results. In particular, you should investigate the viewport meta tag options available for controlling the scaling, zooming, and size of the embedded content. For example, if a web view is resized, it may not dynamically re-layout its contents. Setting the viewport meta tag correctly can resolve these issues.\"\r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-07-10T15:43:00.000+0000", "updated": "2017-07-10T15:43:00.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }