When using jQuery were always using the $(function() or $(document).ready(function() to make sure that the page is loaded before we execute the jQuery. However there are times when this is not appropriate and some ugly things happen on the page. For instance, say we have something in the header of the document that shows an image but should start out hidden. We are using this to hide the image :
$(document).ready(function() {
$(‘#our_image’).hide();
});
Sometimes when the page loads it shows the image for a couple seconds before our code kicks in and makes the jQuery work. I’ve seen the same issue…Read More
Categories
- Ecommerce & Shopping Carts (1)
- General (8)
- jQuery & Javascript (3)
- PHP and Mysql (1)
- Php Programming (1)
- Site Speed & Performance (6)
Menu
Search
- Configure it from WP-Admin -> Settings -> GTranslate to see it in action.
Archives
Tags
Meta
Google news- Rave party: Police question Pune team's Sharma, Parnell - Deccan Herald 7:24am, May 21
- Cricketer Luke Pomersbach has confessed to his crime: Police - Hindustan Times 7:29am, May 21
- Black money probe: Pranab Mukherjee tables White Paper in Parliament - Times of India 7:01am, May 21
