• Hey guys,

    Big fan of your work but it causes such a major performance hit on PageSpeed Insights that we have to disable it on the home-page. Driving most customers to the /contact page where they can then see the live-chat is active.

    It would be awesome if you guys could provide a shortcode that displays a “We are online / offline graphic” and then pops-up the chat if a user clicks on it.

    I know we already have the ability to pop-up the chat with a class or ID, but if there was a nice native shortcode available that would be sweet-heat!

    Keep up the great work!

    Cheers,
    C.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @chadreitsma, we’ll consider your feature request for one future version. Thanks for your suggestion!

    We’re working to reduce the load of the plugin and optimize its performance. If you have performance issues and you’re using On Premise chat server, try to switch Server Chat to 3CX High Performance Cloud Servers.

    You can also disable some resources intensive features like “Enable Manual Chat Initiation” if you’re not using it.

    Thread Starter Chad Reitsma

    (@chadreitsma)

    Hey guys,
    Appreciate the quick response ??

    From what I can see in your code the main performance hits are coming from:
    1. You are re-queuing jQuery all over the place, this should only be needed if the theme hasn’t queued jQuery already (as 99% of them already do, not sure why this is here).
    2. None of the JS resources are loaded into the footer with wp_register_script so PageSpeed Insights is having a hissy-fit.

    If the extra jQuery enqueues were removed and the wp_register_scripts all had dependencies added for jQuery I think this would solve the issues that PageSpeed Insights is detecting.

    We force dequeue and re-queue jQuery into the footer of our themes so that anything that has the jQuery dependency will follow it into the footer.

    Cheers,
    Chad

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @chadreitsma, thanks for your suggestion.
    If you check our code, you see that every single script is loaded with wp_register_script()/wp_enqueue_script() wordpress functions.

    JQuery is added as dependency when it’s needed: if you queue multiple times, it’s loaded only one time. No issues here.

    You’re right saying we could move scripts to the footer. It’s something we’re working on, but some scripts have issues when loaded from there and require some changes.

    Stay tuned for next update with a performance speedup!

    Thread Starter Chad Reitsma

    (@chadreitsma)

    Hey guys,

    I see that you are using the correct wp_register_script, but you are missing the last argument of that function (bool $in_footer = false), so your scripts are defaulting to false / loading in the head.

    Looking forward to the next updates, you guys rock! ??

    • This reply was modified 5 years, 3 months ago by Chad Reitsma.
    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @chadreitsma, we just released version 8.1.4 that fixes several performance issues. Let us know if it works better for you!

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @chadreitsma, about the other feature you requested (shortcodes). Take a look at Gutenberg blocks, should be a good alternative. Give us some feedback!

    Thread Starter Chad Reitsma

    (@chadreitsma)

    Hey guys,
    Unfortunately we disable Gutenberg but thank-you for the consideration.

    Thread Starter Chad Reitsma

    (@chadreitsma)

    The performance optimizations don’t seem to improve the PageSpeed score – You guys should really test your dev sites with: https://developers.google.com/speed/pagespeed/insights/

    See if you can get 90+ while jQuery is deferred into the footer ??

    Cheers,
    C.

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @chadreitsma, we’re still implementing optimizations for our plugin. If you check the code, you see that every single resource is loaded with WordPress functions and from the footer, except for emoji library that needs to be in the header.
    All JS loading is handled by WordPress and we have only very tiny parts of inline code (we’ll remove them). We never load jQuery ourselves, it’s loaded by WP, we only set the dependency. We’re also considering removing jQuery dependency for a performance boost. We also want to distribute merged and minimized js code for better performance, together with clear js. This transition will require some time but we’re working on it.

    Thanks for your feedback, always welcome!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Feature Request: Shortcodes!’ is closed to new replies.