I am using Uniserver for PHP web development and I am running windows 8.1 and have Kaspersky installed on system.
Most of my work involves working on WordPress websites.
Wordpress core files and some CSS and JavaScript files (e.g. CDN JavaScript or Google fonts) that require an Internet connection to work.
When the Internet is slow—or even down—my pages takes a lot of time to load, as they wait for Google fonts, CDN assets etc… to load; until it sometimes times out . This is frustrating, while developing as I need to refresh again and again.
However, if I turn off the Internet completely—by disconnecting WiFi—it loads instantly, as no Internet is present, and pages does not wait until a timeout occurs.
Usually while developing I would like to load the pages instantly, even if fonts don’t work, and CDN files fall back to local files.
But, I cannot turn-off the Interent, as I need Google all the time.
Is there anyway—via firewalls or some Apache config—to block the Internet for websites on localhost
? So, my page loads faster while developing?