Support » Fixing WordPress » Hack to Preload Next Category Image

  • Is anyone aware of a hack or plugin that would allow me to include a preload the next image in a category function in the body?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anyone help point in right direction?

    No, and don’t bump after an hour or two. Be patient!

    I don’t know of a plugin, but the general hack is to do something like:

    <script type="text/javascript">
    var preLoaded = document.createElement('img');
    preLoaded.src = '/whatDoYouMeanByNEXT.jpg';

    Thanks VaamYob; question though … how do I set the preLoaded.src to equal the output of the next entry in the head? I’m not clear on the actual tag to use, considering that you have to have next_post in the Loop. Assuming you’ve placed this script in the head I guess.

    what would be the right wordpress tag to use on this then?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hack to Preload Next Category Image’ is closed to new replies.