• Resolved marcorroma

    (@marcorroma)


    Hi,
    I have errors in the console only if logged in, and it is impossible to perform some operations while browsing.

    Screenshot: https://i.ibb.co/r4wdTyN/console.png

    It seems that when logged in some inline scripts are loaded (without having loaded jquery yet). Instead, if you are not logged in, these scripts are included in the minified and combined .js file. So they are loaded after jquery, and there are no errors in the console.

    I tried to enable or disable the cache for logged in users, the problem persists in both cases.

    Report number: WCOGMQVE
    I await support.
    Thanks!

    PS. sorry for too many support threads ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    this is really weird , login or not , they should load in similar manner

    or there is certain inline JS only shows up for login user ?

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    It seems that the pages for logged users are a bit different.
    At the moment I solved it by removing the jquery exclusion from minification and combination.
    If you need me to do some more tests, let me know…

    Thread Starter marcorroma

    (@marcorroma)

    Here I am again. The problem seemed to be solved but to improve the PageSpeed Insights test score I changed this “Load Inline JS” function to “Deferred” (very good score now) I now have the same problem.
    How can I solve?

    I tried to create a preload of the jquery only for the logged users (in header), excluded from the minification with data-no-optimize=”1″ tag. But it loads after 1.6sec. And I still have problems with the console, but mostly I can’t browser in the menu of my site.
    Screenshot console: https://i.ibb.co/6Ygg5MF/conso.png

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I think in that case you just can NOT defer the JQ

    I tried with preload JQ via push to send it before HTML and other JS , but obviously it did’t work ??

    Best regards,

    Thread Starter marcorroma

    (@marcorroma)

    Do you have any ideas for me?
    I am desperate…

    Thread Starter marcorroma

    (@marcorroma)

    Can you help me please?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    when you have issue with inline JS defer , you can try exclude that certain part of inline JS from being deferred.

    another way is probably to re-work the javascript to make it defer-compatible.

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Console error only if logged in’ is closed to new replies.