jquery - How can i run php script when page is fully loaded -
i fetching tweets , showing them slider . when open page shows me tweets 1 above create mess. , after page loaded shows me tweets wanted . there way show tweets or run php code when page loaded ?
it sounds tweets output via php, , styled slider javascript, in between data being output , javascript loading, see unstyled data.
a simple solution give containing element style of display:none, show via javascript when page has loaded:
css
#tweet-holder{ display:none; }
php / html
<div id="tweet-holder"> //all tweets go here </div>
js
$(function(){ $('#tweet-holder').show(); });
Comments
Post a Comment