Domanda

Sto cercando di ottimizzare il tempo di carico del mio sito web perché era troppo lungo, e lo è ancora ma soprattutto per le immagini JQuery UI CSS,

Se hai un minuto, potresti vedere Questo test Pingdom ?

Tra i file numero 60 e 75 Ci sono poche immagini dal file JQuery CSS (appena rinominato il percorso).Prendono fino a 3 secondi per connettersi, e poi sembrano caricare velocemente .. ma 3 secondi per connettersi?

Il pezzo di CSS relativo a questo:

.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); }
.

e il percorso di questo file CSS è: /CSS/ui.css

e il percorso delle immagini è: /CSS/images/*.png

Se questo non riguarda i percorsi, sono completamente perso qui, qualsiasi indizio?

È stato utile?

Soluzione

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.

Altri suggerimenti

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

enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top