search

Home  >  Q&A  >  body text

javascript - lazyload secondary loading, solution to repeated loading

I found the solution to the problem. When src already has content, it will not be loaded again

给我你的怀抱给我你的怀抱2751 days ago672

reply all(3)I'll reply

  • 为情所困

    为情所困2017-05-19 10:18:46

    You can also set the value of data-isload on img. You can use isload to determine whether it has been loaded.

    reply
    0
  • 怪我咯

    怪我咯2017-05-19 10:18:46

    Just paste the code

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-19 10:18:46

    .. It makes sense to post the code directly

    reply
    0
  • Cancelreply