I mostly work with PHP and don't have much experience with JavaScript or Joomla. I have website made in Joomla, but it doesn't load JS(only just loads rocket.min.js) on the desktop, but it works on mobile. Maybe there is a simple solution? Thank you for your help.
If your website just loads rocket.min.js in joomla, you have to consider to turn off Cloudflare Rocket Loader™ BETA. It helps me as a charm.