Quantcast

Detect Connection speed with Wicket or something similar

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Detect Connection speed with Wicket or something similar

Brown, Berlin [GCG-PFS]
For our wicket applications, we want to detect the browser connection
speed, do you know of a library or approach for detecting the browser
speed.
 
There is a thing in wicket called AjaxTimerBehavior that I could use but
it is a little flaky and not built for the purpose of detetching browser
speed.
 
Do you have any ideas how to check this?
 
I thought about using jQuery also, but wouldn't know how?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Detect Connection speed with Wicket or something similar

Martin Grigorov-4
I think you need to do download of a file to get this measure.
E.g. onDomReady you fire an ajax request back to the server to a
predefined mount path which will init the download of relatively big
file.
When the ajax request ends you need to send a second one with the time
needed to do the first ajax request. The rest is pure maths to
calculate the speed.

On Wed, Oct 12, 2011 at 11:19 PM, Brown, Berlin [GCG-PFS]
<[hidden email]> wrote:

> For our wicket applications, we want to detect the browser connection
> speed, do you know of a library or approach for detecting the browser
> speed.
>
> There is a thing in wicket called AjaxTimerBehavior that I could use but
> it is a little flaky and not built for the purpose of detetching browser
> speed.
>
> Do you have any ideas how to check this?
>
> I thought about using jQuery also, but wouldn't know how?
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Detect Connection speed with Wicket or something similar

Brown, Berlin [GCG-PFS]
Do you have a little bit more pseudocode.  And I want this to be
transparent as part of the application, E.g. I want the user to visit
the home page and then we calculate the speed and log it.

MyHomePage extends Page {

  public String onDomReady() {  

     return "wicketAjaxGet('/theFile');"
     // or jquery?
  }

}

theFile MountPoint extends Page {
 
}

-----Original Message-----
From: Martin Grigorov [mailto:[hidden email]]
Sent: Thursday, October 13, 2011 3:06 AM
To: [hidden email]
Subject: Re: Detect Connection speed with Wicket or something similar

I think you need to do download of a file to get this measure.
E.g. onDomReady you fire an ajax request back to the server to a
predefined mount path which will init the download of relatively big
file.
When the ajax request ends you need to send a second one with the time
needed to do the first ajax request. The rest is pure maths to calculate
the speed.

On Wed, Oct 12, 2011 at 11:19 PM, Brown, Berlin [GCG-PFS]
<[hidden email]> wrote:

> For our wicket applications, we want to detect the browser connection
> speed, do you know of a library or approach for detecting the browser
> speed.
>
> There is a thing in wicket called AjaxTimerBehavior that I could use
> but it is a little flaky and not built for the purpose of detetching
> browser speed.
>
> Do you have any ideas how to check this?
>
> I thought about using jQuery also, but wouldn't know how?
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...