Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How hide and prevent showing web page content during page load and show an animated gif image instead

I designed the site below for my friend: http://noorjamali.info/

How can I prevent showing web site content during web page load? (it has a bad view during page load).

1- Would you please introduce me a jquery plugin for this purpose. As you will see on that web site I act like this:

css

.Home_Page
{
    display: none;
}

jquery

var $j = jQuery.noConflict();
$j(document).ready(function () {
    $j('.Home_Page').fadeIn(2000);
});

but content still appear during page load.

2- How can I fix this issue?
3- How can I show an animated gif instead of showing content during page load?

Thanks in advance.

like image 813
SilverLight Avatar asked Dec 03 '25 19:12

SilverLight


2 Answers

use an inline style,

<body style="display:none">
</body>
like image 146
ilyes kooli Avatar answered Dec 05 '25 09:12

ilyes kooli


Try There is a new version of QueryLoader http://www.gayadesign.com/diy/queryloader-preload-your-website-in-style/

like image 22
Sujith Kumar KS Avatar answered Dec 05 '25 10:12

Sujith Kumar KS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!