• Resolved mrfm

    (@mrfm)


    Uncaught SyntaxError: missing ) after argument list

    Hi,

    On my test page https://focusme.com/pricing-test/ with latest update installed I get 3 of these errors in the chrome browser console and the font is wrong for the whole page. If you compare the fonts with https://focusme.com/pricing/ you will see how it should look (FVM plugin disabled on the live page).

    Can you help?

    Thanks!
    Jon

    p.s. FVM is the most awesome plugin!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Raul P.

    (@alignak)

    I think you must have some other plugin, trying to optimize javascript delivery (async, lazy loading, defer, or whatever).

    Something else is adding an attribute called data-cfasync to the generated js file urls, which doesn’t exist on my plugin.

    Please note, that you cannot have multiple plugins trying to do speed optimization.
    It not only become slower (double work), but it will cause conflict (double minification, etc).

    You have to disable any other plugin or option, that merges and minifies js and css files, AND you cannot have other plugins trying to load css or js async, or lazy loading them.

    You can lazy load images though, just not css and js files.

    Thread Starter mrfm

    (@mrfm)

    You were absolutely right. Though I don’t have other optimizations enabled, my pricing table plugin was doing that for some reason in a function called prevent_rocket_loader_script. I have tweaked the plugin so it does not do that and will report it to them.

    Thanks a lot!
    Jon

    Plugin Author Raul P.

    (@alignak)

    The rocket loader they refer to, is from cloudflare:
    https://support.cloudflare.com/hc/en-us/articles/200168056-What-does-Rocket-Loader-do-

    I recommend all these to be disable on cloudflare (if used), as these are mostly useless.

    Thread Starter mrfm

    (@mrfm)

    Thanks, I do use Cloudflare but already have this feature turned off as per your very helpful FAQ section. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught SyntaxError: missing ) after argument list’ is closed to new replies.