On Jul 11, 2009, at 2:43 PM, John Divon wrote:
> Hi All,
> Thanks for all the replies!
> The point is that I can estimate the time the page is loaded if I am
> using python time object at the controller, save it into the session
> and then, at the end of the page, diff it with another python time
> However, this solution estimates only the time the page is loaded -
> which is usually very fast. Apparently, what I need to know is how
> much time it took the user to see the page.... on some old mobile
> devices, it takes up to 30 secs. before the page is displayed
> (including opening the wap link) and I need to know if this is the
> In addition, I am actually serving http pages and not wap pages -
> don't know yet if this is an issue with response time since basically,
> the connection with old phones is wap.
> BTW - I can see the phone model by using request.env.http_user_agent
> Thank you all.
That reminds me: the JQuery method assumes, obviously, that the mobile
I use a mobile phone detector on a weather page that I maintain (http://lobitos.net/wx
) that does divides mobile phones into two groups: smartphones
(Windows, Android, Pre, iPhone) vs the others. The first group is
really a very different category.
FYI, here's the list; it's Perl, so translate accordingly. It assumes
that you check mobile_agents first.
my @mobile_agents = (
'LG-TU915 Obigo', # LG touch browser
# Palm Pre is reportedly Mozilla/5.0 (webOS/1.0; U; en-US)
AppleWebKit/525.27.1 (KHTML, like Gecko) Version/1.0 Safari/525.27.1
'webOS', # Palm Pre
'WebOS', # Palm Pre (just in case)
'\bPre/', # Palm Pre
my @pda_agents = (
'Nitro', # Nintendo DS