• Hello,

    I created some dashboards by using Chart.js from scratch without using any pluggins. It looks fine but when I view the page under Incognito, the dashboards are not displaying. The script is there but it looks like the <canvas> is not populating the charts. I included <script src="https;//cdn.jsdelivr.net/npm/chart.js"></script> at the top of the page.

    Am I missing something?

    Thanks,

    Lu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    There’s a typo in the URL in your code snippet. Take a closer look at what comes after “http”.

    Thread Starter luvu11

    (@luvu11)

    ah that’s my bad. I switched the script and it’s still not showing.

    Additionally, i noticed that WP convert the <script> to this

    <script data-minify="1">

    Moderator threadi

    (@threadi)

    To me, this looks more like a plugin you’re using – rather than WordPress itself – is optimizing the output. Are you using any optimization plugins? If so, deactivate them to rule them out as the cause.

    If you’re using server-side technology for this (such as Litespeed or Cloudflare), you should also take a closer look at those.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.