Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

background imaging not loading with page

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My site uses an image repeated to form the background for JSPs:




when a page loads on the deployment server- Resin, sometimes the background doesn't load with it, sometimes it does. However I'm not getting this problem on Tomcat- the development server.
what could be causing this? And is there a hack?
 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it seems the problem is more involved than i thought. Actually when the pages fail to load properly, its the whole stylesheet that doesn't load! Could someone pls enlighten me on some reasons why a css would load sometimes and not at other times?
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it happen with all browsers, or just one?
 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for replying Bear.
The problem is more with firefox- works 80% of the time, but every once in a while the entire css fails. Now with explorer, there's a delay between when the page data loads and when the background image loads, but it does seem to load the css everytime at least.
 
Bear Bibeault
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That actually works out better for you since Firefox has loads of plugins that you can use to help diagnose this.

I'd suggest looking through the firefox site for tools that will help you sniff the requests that the browser is making and the responses that are returned. The browser should be making a separate request for the CSS file (and any other resources such as images) Inspecting the requests and responses should help you track down where the issue lies.
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic