Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Slow loading images when on server with document.getElementById?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #271672
    loopz
    Participant

    I put them at the top of the functions responsible for making the change. Should I use another method than this?

    var vname = document.getElementById(“pic”);

    vname .src = “pic1.jpg”;

    #271674
    Beverleyh
    Participant

    We can’t really say without seeing the whole code and an example of usage. Issue could be a loop, or other elements on the page, or the image itself, if it isn’t optimised.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.