Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Stylesheet not loading. Why?

    So, the very first time I go to a newly installed site, with no real data, just installed and working otherwise, it looks wrong from an iPad Air 2 or an iPhone 5s. In both cases, it's formatted really weird, 3 search boxes, sort of vertical, etc. I have attached a picture, does not matter if it's portrait or landscape.

    However, if I click on a link, home. whatever, from then on, it looks what I would assume would be correct. It's only the very first time you would see the page.

    Is that normal for a mobile device? No way around it?
    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,928
    Plugin Contributions
    96

    Default Re: Stylesheet not loading. Why?

    This is a shot-in-the-dark: Is the site set up to be accessed as www.example.com or example.com within your configure.php files? When you go to the site "the very first time", are you including the www. or not?

  3. #3
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: Stylesheet not loading. Why?

    Definitely including www. So, you are saying is you clear all site history in your browser, the first time you go to your responsive site, it displays correctly?

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,928
    Plugin Contributions
    96

    Default Re: Stylesheet not loading. Why?

    Nope, I was just guessing that there was some difference between an access with the www. and one without.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Stylesheet not loading. Why?

    I link to the site would help us help you better.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: Stylesheet not loading. Why?

    It's on a private network for development. No external access. I think I should have posted in the responsive design support thread for this theme, so, have done so. This can be closed if possible.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Stylesheet not loading. Why?

    lat9's suggestion is quite relevant. The logic comes from experience where there are multiple URLs to get to a site, and the first visit doesn't completely match, but after clicking a link (which is generated by the site itself, not typed into the browser potentially incorrectly) things work properly and consistently.

    A common case is the mismatch of domain prefixes, as lat9 mentioned.

    Another common case is using a https:// URL when there's no SSL/https configured on the server.

    Since you can't share a URL, you'll need to investigate yourself why things aren't loading properly. Using the development tools provided by your browser should help you isolate the cause. Look at the errors the browser has logged, and the response-codes for each asset it attempted to load (200 is good, even 300, 301, 30X are good, but 400's (403, 404, etc) and 500's are bad).
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Admin stylesheet not loading in Chrome
    By deepfrydaniel in forum General Questions
    Replies: 15
    Last Post: 12 Oct 2011, 03:22 PM
  2. Custom Stylesheet not loading
    By mactedder in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Aug 2011, 01:53 PM
  3. Stylesheet not loading
    By Veronika7747 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 29 Apr 2010, 09:49 PM
  4. Stylesheet not loading on IE 6,7 and FF
    By choffman in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 5 Apr 2007, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg