Android WebView not loading website properly (AJAX Website)
In this article I will explain how to fix the issue with android WebView not loading page properly / dynamic AJAX content not displayed.
Hate reading ? I have made video for this article. Watch here :
Here’s how I ran into the problemI was developing an application for a client and there were some WebViews used to load some webpage.
There was a webpage that had some dynamic content loaded via AJAX. The webpage was loading but the dynamic content was not displayed.
It took almost one whole night to figure out and fix the problem
Here’s how I fixed it
We need to add a property to WebView to enable domStorage
Even after doing that the webpage was not displayed properly. The problem was that the website was using custom scrollbar (I didn’t develop the website so I had no idea)
WebView’s height was set to wrap_content we need to change it to match_parent
Code:After making these two changes WebView will be displayed properly.
I hope this article was helpful to you. If it helped you can thank me by subscribing to my channel https://youtube.com/encryptedguy



