简体   繁体   English

Joomla未加载所有页面

[英]Joomla not loading all page

Hi I have a problem I dont know why but visiting site with chrome (ffox seem to work fine[also some times not perfect]) it doesnt load all or any pictures (pictures use capty) Example: http://www.artzone.lv/joomla/arhitektura/musu-projekti/2013-gads But when year example 2013 is pressed twice it load fast and everything works just fine So what can i do to fix this ? 嗨,我有一个问题,我不知道为什么,但是访问带有chrome的网站(ffox似乎工作正常,[有时还不完美])它不会加载全部或任何图片(图片使用capty)。例如: http://www.artzone。 lv / joomla / arhitektura / musu-projekti / 2013-gads但是,当按2013年示例两次时,它将快速加载,并且一切正常,那么我该怎么办呢? This is emergency client is waiting to site to be finished.. Than you! 这是紧急客户正在等待现场完成。.谢谢!

The images are loading fine. 图像加载良好。 Your problem is javascript. 您的问题是javascript。

Your .capty-wrapper divs are being resized with javascript to reach the same high as the image. 您的.capty-wrapper divs正在使用javascript调整大小,以达到与图片相同的高度。 But your javascript isn't waiting for the images. 但是您的JavaScript不在等待图像。 If you reload the page, the images are in your cache, which is why your browser can render them fast enough. 如果重新加载页面,则图像将在缓存中,这就是为什么浏览器可以足够快地渲染它们的原因。

So you can do the following things: 因此,您可以执行以下操作:

1) Optimize your javascript to wait for the images. 1)优化您的JavaScript以等待图像。

2) Optimize your javascript to not change the height (i see no reason why you need that). 2)优化您的javascript而不更改高度(我认为没有理由需要它)。

3) Set width and height attributes to the image, so the browser knows the size even before the image is loaded. 3)为图像设置width和height属性,以便浏览器甚至在加载图像之前就知道尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM