• Resolved Jason Chong

    (@dantianhealth)


    I am using Visualizer on one single post. That post loads very slowly unlike the rest of my site. When I run it run it through a tool to examine what is loading I see scripts for disqus, facebook and images which should be lazy loaded. The optimisations tools & techniques I use work on every other page/post of my site but the one with Visualizer installed. I’m trying to understand what might be different about the way the plugin is loading so I can try to optimise for better speed.
    Thanks

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor contactashish13

    (@rozroz)

    @dantianhealth the scripts for disqus and facebook appear to be part of your site’s comments section and not being loaded by our plugin.

    One way to check only the resources loaded by our plugin is by creating a template that does not load your theme’s elements and only loads the charts. Can you please try that?

    Thread Starter Jason Chong

    (@dantianhealth)

    Hi,
    Thanks yes I am aware of where the Disqus and Facebook scripts come from.
    Usually (ie on every other page of my website), these scripts are deferred utilising a plugin called Flying Scripts.
    I also utilise Flying Images plugin to lazy load my images and Flying Analytics to install Google Analytics code. On the page in question, it appears that Visualizer disables all three of these plugins resulting in no deferred scripts or images and no GA code.
    I’m really at a loss as to why this is. I suspect that there is something in the way Visualizer is working that is causing this clash, I’m just unsure what it is.
    I have tried converting all my charts to chart.js instead of google charts but the issue persists.
    I have tested separately and am aware of what your plugin loads in regards to scripts itself.

    Plugin Contributor contactashish13

    (@rozroz)

    @dantianhealth we don’t disable/dequeue any script. If your concern is why our scripts do not get deferred, you may want to contact the creators of that other plugin. Maybe they can guide on what is wrong.

    Thread Starter Jason Chong

    (@dantianhealth)

    Something odd is happening as not only does your scripts not get deferred, but the presence of your plugin also prevents the lazy load scripts from running and the disqus scripts from being deferred. When I remove all charts then images are lazy loaded and disqus scripts deferred.
    So my concern is not just about your scripts but about the interaction which prevents the other plugins from working.
    Moreover I do not observe this behaviour when I have 4 charts displayed on the page, but as soon as I try to display a 5th it consistently happens. I have 11 charts in total to display on this page and have tried multiple combinations of them with the same result.
    Hopefully you can shed some light on this!

    Thread Starter Jason Chong

    (@dantianhealth)

    I have created a post that is exactly the same but with only 4 charts and you can see the difference in loading here https://www.dantianhealth.com.au/testing/
    I have also tried disabling all other plugins to identify any other conflicts and there are none

    • This reply was modified 4 years, 10 months ago by Jason Chong.
    Plugin Contributor contactashish13

    (@rozroz)

    @dantianhealth I’m not sure I understand what I infer with the new page. Can you please clarify?

    Thread Starter Jason Chong

    (@dantianhealth)

    The new page (/testing/) has only 4 charts loading on it. The other plugins work fine deferring js files and lazy loading images.
    The original page (/cost-acupuncture/) has 11 charts on it and the other plugins do not defer js files or lazy load images. This issue arises as soon as I try to add 5 or more charts to a page.
    The other plugins defer js and lazy load images on every other page of my site but the post where I have 11 charts.
    The issue is arising with Visualizer as soon as I hit 5 charts on a page. This is telling me that the issue is arising as a result of something Visualizer is doing once it hits 5 charts on a page.
    Does that help clarify?

    Plugin Contributor contactashish13

    (@rozroz)

    @dantianhealth thanks for the details. We do not enforce any such restrictions and we don’t know how the plugin that defers the scripts works. It is quite possible that the restriction is at that end. It may help if you ask its developers.

    Plugin Contributor contactashish13

    (@rozroz)

    We haven’t heard from you in sometime so marking this as Resolved. If you continue to face an issue, please create a new ticket. We’d be happy to help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Slow loading’ is closed to new replies.