I have a small script running in the <?php while (have_posts()) : the_post(); ?> loop which is similar to adsence and loads on each post, its really slowing my sites load time. Is there anyway to load the script at the end rather then during?
Tried but it still loads as slow as it did before... btw the script is tweetmeme that uses custom fields to pull another sites url
Deactivate the plug in and see if your load time increases. If not. It's not the plug in, you may have destroyed some code or left out a simple closing tag while you were making file edits. If it does load faster without the plug in activated, then you need to thing about not using it, using something else, or check into a cache plug in to help your site load faster. From what you have written, it seems that you are saying that you have put the code inside of the loop? <?php while (have_posts()) : the_post(); ?> If that is correct, that is probably the main culprit as I am sure that this is causing some confusion in your code. I am pretty sure that you SHOULD NOT add any code or scripts within that string.
If you load your script in the while loop it will run for each post returned..... If you want to do it afterwards but still on the same page then do it after the endwhile line.