• Resolved Josef Seidl

    (@blogitsolutions)


    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,
    Josef

    https://www.ads-software.com/plugins/yet-another-stars-rating/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi Josef,
    thank you for your post!

    1 & 2) : You’re 100% right, and in fact I was already working to use only 2 css and use css sprite even for medium and big stars. I hope to include these in the next version

    3) The reason is simple: I’m lazy ?? I know that I’ve to move everything in an external file, but for the moment I spent most of my time to write new feature just beacuse…it’s funny ??
    However, I hope in the next week to begin all the boring work to move all the javascript code in an external file

    1) https://sites.google.com/site/webmasterhelpforum/en/faq-rich-snippets look the question number 4, that’s why I will never make an option to hide it ??

    2) Of course I want, thank you! Your help is much appreciated!

    Best regards,
    Dario

    Thread Starter Josef Seidl

    (@blogitsolutions)

    Hi Dario,

    thanks for your response.

    1 & 2) That sounds great. Will wait for it ?? And please have a look at ImageOptim because you can save about 20 % of all of your PNG-images which you are using at the moment (also on CSS-Sprites).

    3) Allright. Will also wait for it until everything is in an external file and you finished the not so funny stuff ??

    1) Ok. But you already display the necessary information: “Average Rating 3.5 / 5 (2 votes casts)” If you put the “snipped” code above the figures there is no need for another line, right?

    2) Will do it. Do you have an e-mail for me? Otherwise you can contact me via https://www.blog-it-solutions.de/impressum/

    Best regards,
    Josef

    Plugin Contributor dudo

    (@dudo)

    But in that line I also include author, date and post title, each one of them with the proper schema proprieties, it’s not just the vote.

    Just sent an email

    Thread Starter Josef Seidl

    (@blogitsolutions)

    Just sent you the translation file for German and the the information what texts are missing in the file.

    Furthermore on the page itself the rating should differ between singular and plural.

    Example:
    based on 1 rating
    based on 2 ratings

    Waiting for your next update ??

    Best,
    Josef

    thanks Josef for the German translation.

    Thread Starter Josef Seidl

    (@blogitsolutions)

    Your welcome! There are still a few translations missing (and also small errors) which will be fixed in the next release because Dario has to do some changes in the code.

    Best,
    Josef

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Performance Optimization Tips and Others’ is closed to new replies.