Topic-icon Social icon.png load times

Active Subscriptions:

None
11 years 1 month ago #52574 by imnlimited
We are trying to scrape off any milliseconds we can to optimize our site. We are getting there, but we found one abnormality with the social icon image files. They seem to slow down the load time of the page and their files size does not look right.

Could it be related to JFBConnect cache?

Could it be an idea for all these icons to be loaded in a Sprite by JFBConnect (future)?

What can we do now to speed this up? see: joxi.ru/qVrwRJlU4zNeAX

Any help would be appreciated...
The topic has been locked.
Support Specialist
11 years 1 month ago #52595 by alzander
Replied by alzander on topic Social icon.png load times
The file sizes seem right to me. Those are 2kB images. We've tried to make them extremely small as it is.

Combining them into a sprite is likely going to be difficult since it conflicts with our ability to let you use a custom image for each tag. By default, we distribute an icon.png and icon_label.png file for each provider (one is just the logo, the other is the log with text). In the SCLogin module and in the JFBConnect parameters, we let you select a different image altogether which would not work easily with a CSS sprite file.

If you wanted to, you could use some CSS and create a sprite file yourself if you know what image you're always using. However, Cloudflare is doing it's job from your picture by setting the expiration date for those images about 5 days in the future. The very first hit to your page will take a little longer to load those images, but subsequent refreshes or navigation through your site shouldn't have any impact because the assets are cached in the browser already.

I hope that helps explain a little more about their purpose though there's no real substance I have for improving things because what you have above seems right.

Alex
The topic has been locked.