CSS loading issue with Android ICS

懵懂的女人 提交于 2019-12-24 13:26:01

问题


I have an Android ICS 4.0.3 installed in my phone. I have created one Mobile Web Application (test url http://drupal.langoor.mobi), for which I serve the HTML page from the MySQL database in the backend dynamically.

Problem: The html page is not rendered by the default stock browser of Android and Dolphin browser. This problem does NOT occure in chrome, firefox, safari mobile browsers.

To figure out the problem, I followed these approaches:

  1. Used Adobe Shadow to do remote inspect of the HTML Page, which did NOT help much becuase I was NOT able to see any error in content loading.
  2. Assuming Javascript/jQuery conflicts to be a problem, I tried removing all the linked js files which are served dynamically from server (not Static), then the HTML page was rendering but with no style applied.

I tried searching and found this link but it's not helpful: Android - html from android_assets in WebView, CSS not loading in ICS

Please help me out with this.


回答1:


After digging more around Problem, I found that main cause for problem was, content being sent in Uncompressed format from Server and because of which Android ICS's default and Dolphin Browser are not able to render it properly.

Here is the link where i have mentioned exact cause of problem. Enabling data compression for Apache2 + FastCGI setup

Thanks



来源:https://stackoverflow.com/questions/11575189/css-loading-issue-with-android-ics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!