apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
697 stars 159 forks source link

defer_javascript breaks on Android OS #621

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have recently tried one of my sites: www.bimomotor.com on an Android tablet 
PC.

The javascript used for controlling some elements of the page was not working 
when a page is first loaded, but worked when I refreshed the page.

I have had to disable defer_javascript to ensure that the site works first time 
as expected on Android.

Odd - as it works fine on a PC based browser.

Original issue reported on code.google.com by rwap.services on 17 Feb 2013 at 10:36

GoogleCodeExporter commented 9 years ago
Which android tablet PC?  Which browser?

Original comment by jmara...@google.com on 4 Mar 2013 at 7:45

GoogleCodeExporter commented 9 years ago
Also, if you can provide more details about the elements that are not working, 
that would be helpful.

Original comment by ksimb...@google.com on 4 Mar 2013 at 7:50

GoogleCodeExporter commented 9 years ago
This was on a Acer iconia tab Android tablet - it is running the latest Android 
operating system and (I presume) the browser is Google Chrome (as it is the 
default browser) - but there is no about link or similar to check version 
number etc.

The java elements that were not working were tiny_mce and jquery jTransform 
(just did not seem to initialise - but then I don't know how to access the 
console tools on Android tablet browsers to see if there were any errors!).  

I do know that using mod_pagespeed=off in the URL allowed it to display 
correctly, as did disabling defer_javascript.

It is really odd that when the page was refreshed, it works as expected.

Original comment by rwap.services on 4 Mar 2013 at 9:02

GoogleCodeExporter commented 9 years ago
That is strange. I'm trying on Nexus 7 with latest Android OS and chrome 
browser. I don't see any visible difference though. Also, I cannot figure which 
exact elements you are talking about. Can you upload the screenshot if possible?

Original comment by ksimb...@google.com on 5 Mar 2013 at 10:48

GoogleCodeExporter commented 9 years ago
I have just re-enabled defer_javascript on the server.

If you compare www.bimomotor.co.uk on an Android tablet and on a PC browser, 
look at the categories list on the left hand side which is not styled.

Actually, it was styled when I went to www.bimomotor.com and navigated that 
site, but not when I went to bimomotor.co.uk - I wonder if it times out before 
the javascript is initialised, or is linked to issue 634  in some way.

Sorry I cannot attach a screenshot - no idea how to get one from an Android 
device.

Original comment by rwap.services on 6 Mar 2013 at 8:31

GoogleCodeExporter commented 9 years ago
By the way - unless you are logged on as a user, you cannot see the tinyMCE box 
which is for when you list an item for sale - it just never loads on Android 
unless I disable defer_javascript

Original comment by rwap.services on 6 Mar 2013 at 8:39