loading
Please wait while loading...

Read more Difference between $(window).load() & $(document).ready()

When we using jQuery, we would always call $(document).ready(function() { } ). However, document.ready is only prvoide for load script when the DOM is ready. If you want to show your page when all the element is ready (Such as make a loading screen), then you would suggested to use $(window).load() which is the same as window.load on js. This would run your code after all element include images, frames are loaded.

Read more Be Careful on using $.inArray

Today I'm find that the slide effect on my slide show plugin was fail to work. I used over half an hour to find the error reason and lastly found that was caused by $.inArray.

I check an variable using $.inArray() as shown below

if($.inArray('slide',['slide','e2','e3'])) {
    function();
}
...........
1 2