• Resolved Aashish Pahwa

    (@feedough)


    Hello

    Since the plugin loads at the bottom of the post and adds load to admin-ajax. Can we lazy load it to improve its performance?
    Can you add that in the next update if possible?

Viewing 1 replies (of 1 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi @feedough,

    the thing is that also the results widget, which is typically located before each post’s content, requires ajax call. So, for now the lazy loading is not my top priority 🙂 But eventually I will add such a functionality.

    Nevertheless, it should be fairly easy to implement it. You can deregister the main RMP javascript file and add your own file with such a functionality. Use a library like waypoints https://github.com/imakewebthings/waypoints and then call load results function (rate-my-post\public\js\rate-my-post-public.js l 46-57).

    Regards,
    Blaz

Viewing 1 replies (of 1 total)

The topic ‘Lazy load for the plugin’ is closed to new replies.