dreamwest Posted September 24, 2009 Share Posted September 24, 2009 I have a mp3 player which loops 20 times, is there another way i can just call the mp3 code once thus helping page loading times? //loops 20 times for each song// <div class="player"> <object type="application/x-shockwave-flash" data="/mp3/player.swf" id="audioplayer1" height="24" width="290"> <param name="movie" value="/mp3/player.swf"> <param name="FlashVars" value="playerID=1& bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2& righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=http://{$latest[i].url}"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object></center> I tried a function but it didnt seem to help loading times Quote Link to comment https://forums.phpfreaks.com/topic/175330-reduce-this-loop-is-there-another-way/ Share on other sites More sharing options...
JonnoTheDev Posted September 24, 2009 Share Posted September 24, 2009 No, a loop is a loop. I'm guessing that the mp3 files are from external domains. This will be why your load time is large. Quote Link to comment https://forums.phpfreaks.com/topic/175330-reduce-this-loop-is-there-another-way/#findComment-924024 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.