Is there a way to use a PHP script in a website to verify that a given visitor has a broadband connection (some minimum downstream kbs ) before proceding to render certain or all elements of a webpage?
PHP or javascript to verify a broadband connection (client Side)
345 Views Asked by JJRutter At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in DOWNLOAD
- FIle download via cmd in windows using HTML
- Asp.net /JQuery to show/hide animated gif before download
- How to provide a file download from a JSF backing bean using af:commandMenuItem?
- detecting a file downloaded in selenium java
- java download speed very slow with this code
- How to name downloaded file?
- Download file with Casperjs
- how to pause and resume a download in javafx
- how to download a video from url in xamarin forms
- How to verify the integrity of a linux tarball?
- Save File in javascript clientside using utf-8 string
- file download with curl and php
- How can I Upload a document file in Wordpress and track its download?
- It is possible to download file on p:poll
- Access to the path is denied - different from user
Related Questions in CONNECTION
- How would I be able to use a file in visual studio project on any computer?
- Connection was not closed. Connection's current state is open
- Android check WIFI status (disconnected or user changed WIFI)
- How to include the current user's path on a file?
- DB2, Hibernate, JPA: Schema does not exist
- I get 530 access denied in ftp connection after some upgrade in my internet connection
- Java telnet connection to request new tor identity
- Why did my application stop connecting using HTTP, and how can I debug it?
- C# send data to remote server
- Apache Server (xampp) doesn't run on Windows 10 (Port 80)
- Node.js : How to check if mongojs connected successfully?
- Failed to connect ... port 80: Timed out, R connection to a Bing API
- Execute POST request until network connection available with Volley on Android
- Draw lines between divs using css border
- Creating a persistent MongDB connection with PyMongo
Related Questions in BROADBAND
- Apache Cordova broadband
- Changing network interface at runtime
- Can uploads be too fast?
- struggling with mobile broadband api windows 7 and windows 8 with C#, not sure what to install
- Technology behind speed test
- How to change mac address of 3G/4G mobile broadband device?
- MBN Api: No interfaces found when using mbnInfMgrInterface.GetInterfaces()
- Is there a way to determine if a user is using broadband or dial-up
- Broadband account getting locked if multiple machines used
- Not-wifi connection with phone detection check
- Connect And Disconnect Mobile Broadband Connection
- Force Windows 8 to use UMTS
- PHP or javascript to verify a broadband connection (client Side)
- Windows 10 UWP app: StreamSocket via mobile broadband
- Determining the Broadband connection type or 'last mile' of internet connection from a computer
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Let's see...
When the client requests page #1, store the timestamp in the session. Add some JavaScript to page #1, so that the client would start downloading a large file (say, 5MB) as soon as the page is loaded, and then request page #2 as soon as the download has completed. It should be all AJAX, so that everything happens in the background.
Now, page #2 compares the current timestamp with the original timestamp stored in the session. The difference would tell you roughly how long it took for the client to download the large file. If you're satisfied with the speed, you send more page elements via AJAX again.
But this is a bad idea.
Not only does this method require transferring an unnecessary file (which can cost extra money for mobile clients), but it's also extremely unreliable. Latency (think "ping") between the client and the server, CPU usage on the client side, congestion on the wire, and myriad other factors will affect the download time. You might as well just send the real content in the time it takes to run the speed test.
In conclusion, there's no way to do it. Just render a reasonably sized version of the page, and load large elements (such as videos) only after the client clicks something. If anybody is still on dial-up, hopefully they'll know not to click on videos.