I'm going to select a few sites to hand, to catalog and make available later and I have in mind to prioritize users using a 2G / 3G USB mini-modem on the Personal Computer (PC), in which the connection is somewhat limited.
For this I need to know the WebSite type that they will have better visualization and usability, whether or not it instananea presentation of the content of those pages.
Let's use a text field where any URL of the web will be inserted, and the button to which it will direct the opening of an inside iframe .
The logic
Imagine for example that within the page where you will check if it is equal to or greater than 5 seconds the onload
time. If it is longer than 5 seconds, it discontinues URL loading and issues a alert();
of type "Huuumm! This page runs away from our 2G (EDGE) standards"
But if the number of seconds is smaller then allow the upload and at the end issue another type of alert();
something like "Ok! This page is valid for 2G (EDGE) connections"
Reminder
The page that checks contains the scripts and a
<iframe></iframe>
, when compared to the loading time, one of the two actions will be done inside<iframe></iframe>
The part that is obscure for me is, how to stop loading a url into an iframe.