Ask LH: Why Won’t This Website Load Correctly (And How Can I Fix It)?

6
Ask LH: Why Won’t This Website Load Correctly (And How Can I Fix It)?


Dear Lifehacker, My mobile service provider’s website doesn’t work in Chrome, and it’s really annoying. What’s going on and how can I fix it? Sincerely, Broken Browser

Dear Broken,

A website may not work properly for a lot of reasons, and sometimes those reasons aren’t immediately obvious. Luckily you can hunt down and fix a lot of these problems yourself. Here are a few things you should try before throwing in the towel.

Change Your User Agent


tellthinking

Changing Chrome’s User Agent

To change Chrome’s user agent, you can either download the User Agent Switcher extension (which makes the process quick and easy), or do it without any extensions by going to Tools > Developer Tools > Settings > Override User Agent. This will only change your user agent while you have the Developer Tools window open, so don’t close it until you’re done with that website.

Changing Firefox’s User Agent

On Firefox, you can download the User Agent Switcher extension for quick changes, or change Firefox’s built-in setting, which is a bit more involved. To do this, type about:config in the address bar, promise Firefox you’ll be careful, and create a new string by right-clicking on the page and going to New > String. Type in general.useragent.override for the string’s name, and a user agent string as the value, which you can find on the internet. For example, the user agent string for Chrome 19 is:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.9 Safari/536.5

Again, this method is a bit more roundabout but doesn’t require any extensions installed.

For more info on user agent strings and how to change them in your favourite browser, check out this how-to from our friends at How-To Geek.

Open Your Browser with a New Profile

Sometimes, your problem can be a bit more complicated, and you’ll actually see rendering errors on the page. For example, I recently found that I couldn’t view some of Lifehacker’s content in Firefox. To determine whether this was an issue with Firefox or an issue with my particular setup, I opened the page with a new Firefox profile and discovered the problem was on my end.

Creating a New Profile in Chrome

To open Chrome using a new profile, open up a Windows Explorer window and type in the following file path:

Windows Vista/7:

%LOCALAPPDATA%\Google\Chrome\User Data\

Windows XP:

%USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data\

Mac and Linux users should open up their respective file managers and go to Go > Go to Folder or its equivalent, and type in the following paths:

OS X:

~/Library/Application Support/Google/Chrome/

Linux:

~/.config/google-chrome/

Once you’re there, find the folder called “Default” and rename it to “Backup Defualt”. When you reopen Chrome, it will open with a clean slate, after which you can check the problematic website and see if it renders correctly. If it doesn’t, then Chrome is to blame, and you’ll have to use another browser to access it for the time being. If it does render correctly, then your particular Chrome setup was the problem, and you’ll want to keep that new profile and reinstall your extensions one-by-one (in case one of them was the problem). You can delete the old profile if you no longer need it by deleting the “Backup Default” folder. Check out Chrome’s help page on profile management for more info.

Creating a New Profile in Firefox


Windows:

"C:\Program Files (x86)\Firefox\firefox.exe" -P

OS X:

/Applications/Firefox.app/Contents/MacOS/firefox-bin -profilemanager

Linux:

./firefox -profilemanager

Be sure to replace the file path in the command with wherever you installed Firefox or Aurora.

If you entered the command correctly, you should see the profile manager pop up. Click “Create Profile” and give it a name. You should be greeted with a clean Firefox slate, after which you can check the problematic website and see if it renders correctly. If it doesn’t, then Firefox is to blame, and you’ll have to use another browser to access it for the time being. If it does render correctly, then your particular Firefox setup was the problem, and you’ll want to start fresh with that new profile and reinstall your extensions one-by-one (in case one of them was the problem). You can delete the old profile from the Profile Manager if you no longer need it. For more info, check out Mozilla’s help article on the profile manager.

Open The Problematic Site In Another Browser


Open With

Cheers
Lifeahcker

PS Got any of your own tips for troubleshooting broken websites? Tell us about them in the comments.

Got your own question you want to put to Lifehacker? Send it using our contact tab on the right.

Comments

Log in to comment on this story!