Pregunta

Estoy tratando de optimizar el tiempo de carga de mi sitio web porque era demasiado largo, y aún así es especialmente para las imágenes de JQuery Ui CSS,

Si tiene un minuto, podría consultar Esta prueba de pingdom ?

Entre los archivos número 60 y 75 hay pocas imágenes del archivo CSS de jQuery (solo cambió de nombre de la ruta).Toman hasta 3 segundos para conectarse, y luego parecen cargarse rápido ... pero 3 segundos para conectarse?

la pieza de CSS relacionada con esto:

.ui-icon { width: 16px; height: 16px; background-image: url(/css/images/ui-icons_222222_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(/css/images/ui-icons_222222_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(/css/images/ui-icons_222222_256x240.png); }
.ui-state-default .ui-icon { background-image: url(/css/images/ui-icons_888888_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(/css/images/ui-icons_454545_256x240.png); }
.ui-state-active .ui-icon {background-image: url(/css/images/ui-icons_454545_256x240.png); }

y la ruta de este archivo CSS es: /CSS/ui.css

y la ruta de las imágenes es: /CSS/images/*.png

Si esto no se trata de caminos, estoy completamente perdido aquí, ¿alguna pista?

¿Fue útil?

Solución

The other thing to think about is that your browser uses caching. So, when you run a test like this it will look like JQuery UI images are horribly slow. But to the user (with a proper browser caching setup in place) the "penalty" will only happen once. So, in reality it's not an entirely fair test.

I'd worry more about your 40kb background image and less-than-perfectly-optimized CSS. Try this website on your css document to drop 13% of it's overhead (on the main site css) Also, you could benefit by combining the CSS documents together, which will lower HTTP overhead. Again, thanks to the concept of browser caching this would be a one-time only improvement for a properly setup browser.

Compared to many sites out there, this one loads quite quick. Unless your site is going out to 20+million daily, or you're paying by the kb for bandwidth, the setup is more than adequate.

Otros consejos

I am not seeing that long of a delay. It looks like they take less than a second to load.

enter image description here

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top