Trying to figure out a good lazy load solution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • redwhiteandblue
    Bollocks
    • Jun 2007
    • 2785

    #1

    Trying to figure out a good lazy load solution

    I want to post-load images on my page that are below the fold. I can't seem to find a simple solution that takes into account non-javascipt enabled users. They all seem to rely on having JS/Jquery.

    I'm thinking, put the standard HTML in a noscript tag, then have a js function which takes all the elements in the noscript tag and writes them out but omits the src attribute in the img tags (or swaps them for a "loading..." gif), then a post-load function fills all the src attributes back in. Sound reasonable? Will googlebot understand what I'm doing though?
    Interserver unmanaged AMD Ryzen servers from $73.00
  • barcodes
    Confirmed User
    • Mar 2011
    • 2040

    #2
    Will this help?
    http://www.appelsiini.net/projects/lazyload

    Best of luck with it

    Comment

    • redwhiteandblue
      Bollocks
      • Jun 2007
      • 2785

      #3
      Hmmm

      Google crawlers do not execute JavaScript but also seem to ignore noscript content.
      I'm not sure that's right.
      Interserver unmanaged AMD Ryzen servers from $73.00

      Comment

      • barcodes
        Confirmed User
        • Mar 2011
        • 2040

        #4
        shit, sorry i didn't read this well enough, just woke up.
        Last edited by barcodes; 04-21-2012, 05:28 AM.

        Comment

        • redwhiteandblue
          Bollocks
          • Jun 2007
          • 2785

          #5
          Actually I've just figured out something really clever, really fucking clever and it doesn't need noscript. This is fucking genius actually, probably about the most cleverest thing I've ever thought of. You'd fucking love this if I told you what it was.
          Interserver unmanaged AMD Ryzen servers from $73.00

          Comment

          Working...