nathansmith / adapt

Adapt.js serves CSS based on screen width.

Home Page:http://adapt.960.gs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo files don't work locally in Chrome

cpharris opened this issue · comments

I'm running Chrome Version 22.0.1229.94 m. The test_class.html and test_id.html don't work properly when viewing the files locally. You have to F5 (refresh) in order for the DIV elements to display. I put the files on a live Apache server and they worked fine on first load. Not sure if this is a Chrome issue or code issue.

I just tried this in Chrome version 22, and it worked fine for me locally.

I'm using a Mac, with OS X Lion. Are you on Windows?

(Just wondering how I can go about reproducing the problem.)

Hi Nathan,

I'm running Windows 7 Ultimate. I initially noticed the problem at work where some of the options of Chrome are locked down by IT but I just tried it at home where I have full permissions on Chrome (same version) and the same thing happens.

Also, I misspoke about the DIV elements; It's actually the "Visible at: X by X" P elements that aren't displaying on first load.

Interesting. Perhaps that's a restriction of Chrome on Windows, due to local file access? I'm not sure.

Unfortunately, I don't think there's anything I can do about it. I'm just glad it works in an actual server/page.

True. Yea, it's not a big deal since it does work where it's supposed to work (on a web server). Just an FYI for you and anyone else though. I was scratching my head for a little while wondering why it won't work locally.

Gotcha. I'll just close this, but kind of treat it as a "known issue" with Chrome on Windows.