# Loading external images upon entering the frame

**URL:** https://forum.kirupa.com/t/loading-external-images-upon-entering-the-frame/299251
**Category:** Uncategorized
**Created:** [November 2, 2009, 6:02am UTC](https://forum.kirupa.com/t/loading-external-images-upon-entering-the-frame/299251 "2009-11-02T06:02:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jumpsuit1](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jumpsuit1](https://forum.kirupa.com/u/jumpsuit1)
#### Post date: [November 2, 2009, 6:02am UTC](https://forum.kirupa.com/t/loading-external-images-upon-entering-the-frame/299251/1 "2009-11-02T06:02:55Z")

</div>

I am putting together code for an XML image gallery and I want it to preload all the images when someone enters the scene that the gallery is on / instead of doing them individually when the corresponding thumbnails are clicked on. I am kind of confused on how to go about doing this. I am wondering (I’m pretty sure I’m wrong on this) does it automatically load in the gallery with this code:

```auto
xmlData.load("images.xml");

```

I’m assuming I need to do more.
