Support » Plugin: Rate my Post - WP Rating System » Lazy load for the plugin

  • Resolved feedough



    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 Author Blaz K.


    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 and then call load results function (rate-my-post\public\js\rate-my-post-public.js l 46-57).


Viewing 1 replies (of 1 total)
  • The topic ‘Lazy load for the plugin’ is closed to new replies.