# How get preloader to load early?

**URL:** <https://forum.kirupa.com/t/how-get-preloader-to-load-early/122559>\
**Category:** Uncategorized\
**Created:** [September 14, 2004, 8:49pm UTC](https://forum.kirupa.com/t/how-get-preloader-to-load-early/122559 "2004-09-14T20:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cameramano](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cameramano](https://forum.kirupa.com/u/cameramano)\
**Post date:** [September 14, 2004, 8:49pm UTC](https://forum.kirupa.com/t/how-get-preloader-to-load-early/122559/1 "2004-09-14T20:49:04Z")

</div>

After consulting several different pre-loader tutorials, I tried to build a very simple pre-loader. I placed the following on a movie clip in frame 1.

onClipEvent (enterFrame){  
bytesloaded=Math.round (getBytesLoaded());  
bytestotal=Math.round (getBytesTotal());  
percent=(bytesloaded/bytesTotal);  
fullpercent=(Math.round(percent_100));  
this.loadbar.\_width=(this.loadbar.\_width_percent);  
if (bytesloaded==bytestotal){  
\_root.gotoAndPlay(2);  
}  
}

I placed the published html file on the web. Although it isn’t large (I attached a medium-sized image as a “load”), it takes forever to load and does not show the pre-loader. What is my error? Any ideas?
