Images not loading - programming question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dreamsites
    Registered User
    • Apr 2013
    • 36

    #1

    Images not loading - programming question

    Hi Guys and gals.

    new to the forum but looks really useful. i have a programming question is there is another out there willing to help a buddy out.

    im trying to put a tube site together and the external images will sometimes load and other times wont. seems really random. when you refresh you gain some and lose some.

    take a look hushwebsites.com/tube/

    i think it is a page load issue but is there a way around making sure your thumbnails load without having to load them in the body first?

    Thanks peeps

    Dan
  • Kephael
    Confirmed User
    • Mar 2013
    • 15

    #2
    None load at all for me, are the images being loaded from a server you have access to? If so, I'd start by checking the web server error logs.

    Comment

    • Dreamsites
      Registered User
      • Apr 2013
      • 36

      #3
      yea they are accessable. if you navigate direct to the image it loads. ill have a look at the logs tho. didnt think of that.

      thanks

      Comment

      • sarettah
        see you later, I'm gone
        • Oct 2002
        • 14297

        #4
        I am in chrome. With adblock running none of your thumbs load. I assume that that is because they are all external. With adblock shut down, some load, some do not as you said in your post.

        Have no idea why.

        .
        All cookies cleared!

        Comment

        • Dreamsites
          Registered User
          • Apr 2013
          • 36

          #5
          i know weird huh? i can understand if it was because ad blocker but it doesnt explain why some do and some dont. it load perfectly, altho quite slow on mobile android and ios.

          how do other tube site work, surely they dont host the images themselves or how would they use auto feeds?

          Comment

          • fonsolo
            Confirmed User
            • Nov 2012
            • 135

            #6
            The link to your style sheet is outside of your <head> tag, it should come before. It should also be self closing with a slash at the end for good measure. For instance <link re........ />.

            That may be what's causing some issues, since pages load from top to bottom and problems with code above can often lead to strange issues with the page bellow. Google html and css validators and run your code through them, or one newer versions of Firefox, there's on built into the "View Source" option when you right click on a page.
            Last edited by fonsolo; 04-11-2013, 10:04 AM.

            Comment

            • Nevet
              Registered User
              • Dec 2011
              • 10

              #7
              None load for me. embed.niceratios.com doesn't seem to resolve.

              In addition to fonsolo's excellent points above, you're also using id="thumb" multiple times. An ID attribute should be unique. You should probably change #thumb to .thumb in the CSS and change id="thumb" to class="thumb" in the page template.

              I definitely second fonsolo's recommendation that you make use of an HTML validator.

              Comment

              • Dreamsites
                Registered User
                • Apr 2013
                • 36

                #8
                Thanks guys. I didn't notice the CSS link was outside the head doh! I normally clean up the CSS when I have the design how I like it, hence inline styling which should not be used as much as I have on that page. I will try googles validators and clean up my CSS but think you may have solved the issue with the CSS link. Thanks again you guys.

                Comment

                • fonsolo
                  Confirmed User
                  • Nov 2012
                  • 135

                  #9

                  Comment

                  Working...