开发者

Prevent incomplete loading of css and javascript files

开发者 https://www.devze.com 2023-02-18 06:44 出处:网络
I have the problem that some webpages on my webserver are sometimes not loaded completely, for instance it seems that css and javascript are not loaded and therefore the website appears unformatted. I

I have the problem that some webpages on my webserver are sometimes not loaded completely, for instance it seems that css and javascript are not loaded and therefore the website appears unformatted. Is there a way to force the complete loading of the css and javascript files so that these errors can be prevented. Maybe some progress loading can be shown while the whol开发者_StackOverflowe website is loaded. I'm sure this is a solved problem but I need some directions where to look for implementations.

Regards, Juan


Is it just that the page takes a long time to load but gets there eventually? If so, you can wait for the onLoad event to fire before starting up your JS code. If the page never gets there, well, that's some kind of server or connection problem, as thirtydot says.

0

精彩评论

暂无评论...
验证码 换一张
取 消