将图像设为页面加载

问题描述:





我试图将图像作为页面加载,即直到html完全呈现我将显示加载图像,比如gif图像。因此,在页面未完全呈现之前,用户必须无法单击页面上的任何内容。为了做到这一点,我必须在整个页面上显示图像吗?那么我怎么能解决这个问题呢。任何人都可以帮助我。



我在Angular JS中这样做,问题是渲染时间延迟而不是数据提取。

Hi,

I am trying to make an image as page load, i.e till the html is fully rendered i will show a loading image, say a gif image. So till the the page is not fully rendered, the user must not be able to click anything on the page. In order to do that i must show the image over the entire page right? So how can i acieve this. Can any one please help me.

I am doing it in Angular JS and the problem is the time delay happens in rendering rather than data fetch.

没有插件,完成这项任务并非易事。我使用BlockUI来完成此任务: http://malsup.com/jquery/block/ [ ^ ]
Not a very easy task to accomplish without a plugin. I use BlockUI to accomplish this: http://malsup.com/jquery/block/[^]