Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. lazy load not working

lazy load not working

Scheduled Pinned Locked Moved JavaScript
javascripthelpcsharphtmltools
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Najla 2010
    wrote on last edited by
    #1

    Hello, I tried to apply this code here http://www.appelsiini.net/projects/lazyload[^] But the picture does not appeare, I do not know what is the problem this is my code here

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script src="jquery.js" type="text/javascript"></script>
    <script>$("img.lazy").lazyload();</script>
    

    <script src="jquery.lazyload.js" type="text/javascript"></script>
    <title>Your Website</title>
    </head>

    <body>

    No-Image

    </body>

    </html>

    Can any one give me some help please!

    S 1 Reply Last reply
    0
    • N Najla 2010

      Hello, I tried to apply this code here http://www.appelsiini.net/projects/lazyload[^] But the picture does not appeare, I do not know what is the problem this is my code here

      <html>

      <head>

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <script src="jquery.js" type="text/javascript"></script>
      <script>$("img.lazy").lazyload();</script>
      

      <script src="jquery.lazyload.js" type="text/javascript"></script>
      <title>Your Website</title>
      </head>

      <body>

      No-Image

      </body>

      </html>

      Can any one give me some help please!

      S Offline
      S Offline
      sjyanxin
      wrote on last edited by
      #2

      I try your code. It doesn't work. but below code works fine. Hoping it will help you. $(function() { $("img.lazy").lazyload(); });

      N 1 Reply Last reply
      0
      • S sjyanxin

        I try your code. It doesn't work. but below code works fine. Hoping it will help you. $(function() { $("img.lazy").lazyload(); });

        N Offline
        N Offline
        Najla 2010
        wrote on last edited by
        #3

        Thank you, I had to put the script before the end tag of body. It does not work in the head.

        D 1 Reply Last reply
        0
        • N Najla 2010

          Thank you, I had to put the script before the end tag of body. It does not work in the head.

          D Offline
          D Offline
          Dholakiya Ankit
          wrote on last edited by
          #4

          check your image path first is that one ok?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups