I am looking for a possibility to check the user connection speed. It is supposed to be saved as a cookie and javascript files as well as css files will be adapted if the sp
How about using javascript to time how long it takes to load a page. Then use javascript to set the cookie.
microtime in javascript http://phpjs.org/functions/microtime:472
Using jQuery
some page to test how long it loads
Some pitfalls: - The page would need to start loading first. JQuery would need to be loaded (or you can rework the above code to avoid jQuery)