I have a CMS homepage
which has many widgets(Drupal block
). some widgets connects to external website via internet. some widgets are locally displayed via Intranet
.
Intranet Website
is accessible to only TPN User
.Some User have Internet Access enabled via proxy server to them home page loads all the widgets very fast
All the Internet(External) Widgets
uses iframes to load pages.
Example Drupal Widgets
:
1)NHL report
2)Snow report
3)Cricket online
4)Southwest Train Status
To the users who don't have internet connection browser show continues loading to a very long time until all the Internet widgets failed to load. How do I disable these widgets using javascript or PHP ?
I want to know if user has an internet connection or not. if no internet connection then disable those widgets which tries to connect via internet. This may avoid browser being busy loading continuously.
Problem is the homepage loads slow to the user who dont have internet access . And I want a solution to disable the Internet Widgets(Iframe)
from being loaded . Is it possible to do?