Performance Optimization Tips and Others
-
Hi Dudo,
I was very happy to found your plugin a few hours ago because I was looking for a nice and small plugin with exactly the functions you offer. And it works very well.
But I found a few things which can be improved on a performance point of view:
1) In my case the plugin loads 4 css files: rateit.css, bigstars.css, yasr.css and yasr-table-light.css. This costs 4 HTTP Requests if you don’t use a plugin to combine them. Is it really necessary to load all this css files? Or could you exclude / include some css files depending on the settings in the backend?
2) The star images (24 px) are not as small (size) as they could be. If you use ImageOptim (for Mac) you can reduce the file size by another 20 % without loosing quality. At the end one star has a size of 1KB. It would be nice if you could also create a css sprite for the 24px images as you already did for the 16px. Another solution in this case (because the size is smaller then 4KB) is inlining the pictures with the data uri scheme. This saves another HTTP Request.
3) Is there any reason why you inlined the JavaScript Code? (Edit: Just saw that there are also two external JS files. But why the inlined code?)
Another points:
1) Is there any possibility to hide the second div-container with the rich snippet information? I want to use this information but I don’t want to show them on my page (only in the html). This could be an idea for an option in the backend.
2) If you want I can translate you the .pot-File into german ??
Best and thanks for this cool plugin,
Josefhttps://www.ads-software.com/plugins/yet-another-stars-rating/
- The topic ‘Performance Optimization Tips and Others’ is closed to new replies.