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)
346 Views Asked by JJRutter At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in DOWNLOAD
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- download all pdf files from website doesn't support wildcard
- Create the original download link after checking the domain
- How to Properly Interrupt the Download of a Background Image Using JavaScript
- ftp download for small datasets works but for more than 300KB not
- I need to have a look at all my private pine scripts and filter the scripts for certain words in TRADINGVIEW
- Renaming a file - Google API direct download link
- find out filename from URL
- How to download a file using a button on a ribbon on a Model Driven App with C# Plugins?
- JavaScript anchor file download - override file name from Content-Disposition header
- Node.js/Express File Download Returns 0-Byte Plaintext Files
- Downloaded file in Angular Application saved as Unconfirmed XXXXX.crdownload
- Replace urllib.request urlopen in PHP
- string PNG conversion Returns Blurry Image
- Java Selenium - cannot download image from Chrome browser and save as .png file
Related Questions in CONNECTION
- MongoDb not connecting C#
- Frontend fetching data from unexpected localhost address despite proxy configuration
- recognize_google fails with WinError 10060
- April fools - PsExec (PsTools)
- Unable to resolve service name to its IP inside kubernetes cluster
- Is there a way to create connection pooling in codeigniter 3 using custom mysqli driver?
- Error in releasing pool connection in node project
- Is there a way in Laravel to use multiple connections simultaneously in a combined manner?
- Not able to inject RedisCache/SyncCache/StatefulRedisConnection beans in micronaut 4.2.1 version
- How to send a big array to a client faster
- Connection Type not visible in Airflow connections
- Cannot connect to an Oracle XE database from C#
- SSMS Update Causes Connection Failure and Exception Error
- Mutual connections in Strapi
- Microsoft SQL Server Express Java Connection
Related Questions in BROADBAND
- Using a broadband connection while on a network with an internet connection
- how to connet wired network in fedora/ubuntu via ISP (username and password)?
- How to change mac address of 3G/4G mobile broadband device?
- Windows 10 UWP app: StreamSocket via mobile broadband
- Apache Cordova broadband
- Determining the Broadband connection type or 'last mile' of internet connection from a computer
- Changing network interface at runtime
- How to differentiate or identify if a wifi connection is a tethered network or real broadband network?
- Multiplex multiple mobile broadband connections into one access point
- MBN Api: No interfaces found when using mbnInfMgrInterface.GetInterfaces()
- How to get messages from Serial Port in VB.NET
- struggling with mobile broadband api windows 7 and windows 8 with C#, not sure what to install
- General network error on adodb with mobile broadband
- Mobile Broadband C# interface to manage Profiles
- Mobile Broadband Sierra Gobi 3000 drivers compile under kernel 3.2
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 # Hahtags
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.