• Resolved fotov60

    (@fotov60)


    I’m using LiteSpeed Cache with the following JavaScript settings: Minify JS, Combine JS, Combine Inline and External JS, and Defer JS Loading in the deferred option. The website seems to be functioning normally, and I don’t see any functional errors. However, when running the Lighthouse test, I receive the following message:

    “Browser errors were logged to the console.
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns.”

    Source:
    URL: https://www.fotov60.com/wp-content/litespeed/js/7287f9c1bc5f03f594e982ab0cef8277.js?ver=ab86d
    Line: 0
    Column: 358
    SyntaxError: Unexpected token ‘;’

    Based on the content of the URL, I deduce that it is some part of the JavaScript code that handles LiteSpeed, but I can’t identify what is causing this error or how to resolve it. Could you please help me?

    Thank you for your attention.

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

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

    (@qtwrk)

    please check this page

    it looks like some JS files and needs to be excluded from being combined.

    Thread Starter fotov60

    (@fotov60)

    I have followed the steps of accessing the page with “?LSCWP_CTRL=before_optm” appended at the end and checked the list of JS in the dev tools. I have added them one by one in the Settings of the tweaks, Exclude JS field, and then cleared the cache. However, when I ran the Lighthouse analysis again, the warning is still there.

    Is there any way for you to check if I have correctly added the necessary files to the exclusion list so that I can proceed with the steps of identifying the problematic one? I have tried analyzing the URL with “?LSCWP_CTRL=before_optm” at the end, and that error disappears, so I must be doing something wrong that I don’t understand.

    Plugin Support qtwrk

    (@qtwrk)

    you can try add

    wp-content
    wp-includes

    into exclude field , save and purge all , then check again

    if you ahve enabled combine inline/external JS , you can disable that one first, this will tell you if it’s coming from inline JS or external JS

    Thread Starter fotov60

    (@fotov60)

    I have tried both of your recommendations. First, I excluded wp-content and wp-includes, and then the “issue” disappeared. Then I included wp-content and wp-includes again and disabled combine inline/external JS, and the issue also disappeared. But if I try it again without excluding wp-content and wp-includes and disabling combine inline/external JS at the same time, the issue reappears. Does that help identify the problem?

    Plugin Support qtwrk

    (@qtwrk)

    that means the script needs to be excluded is within wp-content or wp-includes , now try only exclude one of them , see how it goes.

    Thread Starter fotov60

    (@fotov60)

    When I exclude wp-includes the error message is still there, and when exclude wp-content appears too with another one saying:

    URL: https://www.fotov60.com/wp-content/plugins/jetpack/_inc/build/facebook-embed.min.js Line: 0 Column: 224 ReferenceError: jpfbembed is not defined at n (https://www.fotov60.com/wp-content/plugins/jetpack/_inc/build/facebook-embed.min.js:1:225) at https://www.fotov60.com/wp-content/plugins/jetpack/_inc/build/facebook-embed.min.js:1:627 at https://www.fotov60.com/wp-content/plugins/jetpack/_inc/build/facebook-embed.min.js:1:631

    I have tried excluding wp-content and wp-includes again to see if it was an error, but when I do that, I see both the old error message and the new one. Now, if none of them are excluded, only the old error message appears. I don’t know what’s going on. The errors only disappear when I disable the option of “Combine external and inline JS.

    Plugin Support qtwrk

    (@qtwrk)

    so if you exclude both wp-content and wp-includes , it works , and if you exclude only one of them , it doesn’t work , which indicate they have to be both at same time ?

    then please try this

    wp-content/themes
    wp-content/plugins
    wp-includes

    if you add these 3 , how does it go ?

    Thread Starter fotov60

    (@fotov60)

    To be clearer and avoid any confusion, here are the test results. Messages that appear in the Lighthouse report according to the configuration combinations:

    With External and Inline JavaScript combination turned off and no exclusions:

    Issues were logged in the Issues panel in Chrome Devtools
    
    Issues logged to the Issues panel in Chrome Devtools indicate unresolved problems. They can come from network request failures, insufficient security controls, and other browser concerns. Open up the Issues panel in Chrome DevTools for more details on each issue.
    
    Issue type
    Cookie
    
    URL
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-match-ii-agusti-pardo-rossello/b1/Harlem+Globetrotters+match+II/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-match-ii-agusti-pardo-rossello/b1/Harlem+Globetrotters+match+II/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-match-agusti-pardo-rossello/b1/Harlem+Globetrotters+match/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-match-agusti-pardo-rossello/b1/Harlem+Globetrotters+match/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/prime-time-harlem-globetrotters-iii-agusti-pardo-rossello/b1/Prime+Time+Harlem+Globetrotters+III++/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/prime-time-harlem-globetrotters-iii-agusti-pardo-rossello/b1/Prime+Time+Harlem+Globetrotters+III++/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/prime-time-harlem-globetrotters-ii-agusti-pardo-rossello/b1/Prime+Time+Harlem+Globetrotters+II++/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/prime-time-harlem-globetrotters-ii-agusti-pardo-rossello/b1/Prime+Time+Harlem+Globetrotters+II++/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/zeus-harlem-globetrotter-agusti-pardo-rossello/b1/Zeus+Harlem+Globetrotter/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/zeus-harlem-globetrotter-agusti-pardo-rossello/b1/Zeus+Harlem+Globetrotter/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/flip-harlem-globetrotters-agusti-pardo-rossello/b1/Flip+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/flip-harlem-globetrotters-agusti-pardo-rossello/b1/Flip+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/prime-time-harlem-globetrotters-agusti-pardo-rossello/b1/Prime+Time+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/prime-time-harlem-globetrotters-agusti-pardo-rossello/b1/Prime+Time+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/speedy-harlem-globetrotters-agusti-pardo-rossello/b1/Speedy+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/speedy-harlem-globetrotters-agusti-pardo-rossello/b1/Speedy+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-v-agusti-pardo-rossello/b1/Thunder+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-v-agusti-pardo-rossello/b1/Thunder+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/croppedmouseover.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-ii-agusti-pardo-rossello/b1/Mighty+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/cropped.jpg
    https://fineartamerica.com/images-slideshow/images/artworkimages/medium/3/harlem-globetrotters-ii-agusti-pardo-rossello/b1/Mighty+Harlem+Globetrotters/b2/Agusti+Pardo+Rossello/b3/250px/b4/250px/b5/


    With External and Inline JavaScript combination turned on and no exclusions:

    Browser errors were logged to the console
    
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. 
    
    Source	
    URL: https://www.fotov60.com/wp-content/litespeed/js/d6b6e3453cac0ae14ce89a4bb8355beb.js?ver=998d4
    Line: 0
    Column: 358
    Description
    SyntaxError: Unexpected token ';'

    With External and Inline JavaScript combination turned on and wp-content exclusion:

    Browser errors were logged to the console
    
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. 
    
    Source	
    URL: https://www.fotov60.com/wp-content/litespeed/js/2b64a9a43571380ef9c9598d32ae1b0c.js?ver=d47bd
    Line: 0
    Column: 358
    Description
    SyntaxError: Unexpected token ';'

    With External and Inline JavaScript combination turned on and wp-includes exclusion:

    Browser errors were logged to the console
    
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. 
    
    Source	
    URL: https://www.fotov60.com/wp-content/litespeed/js/d6b6e3453cac0ae14ce89a4bb8355beb.js?ver=49948
    Line: 0
    Column: 358
    Description
    SyntaxError: Unexpected token ';'

    With External and Inline JavaScript combination turned on and wp-includes + wp-content exclusion:

    Browser errors were logged to the console
    
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. 
    
    Source	
    URL: https://www.fotov60.com/wp-content/litespeed/js/2b64a9a43571380ef9c9598d32ae1b0c.js?ver=41929
    Line: 0
    Column: 358
    Description
    SyntaxError: Unexpected token ';'

    With External and Inline JavaScript combination turned on and wp-includes + wp-content/themes + wp-content/plugins exclusion:

    Browser errors were logged to the console
    
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. 
    
    Source	
    URL: https://www.fotov60.com/wp-content/litespeed/js/2b64a9a43571380ef9c9598d32ae1b0c.js?ver=ae2b5
    Line: 0
    Column: 358
    Description
    SyntaxError: Unexpected token ';'

    Thread Starter fotov60

    (@fotov60)

    Correction regarding the previous post.
    With External and Inline JavaScript combination?turned off?and no exclusions:

    Browser errors were logged to the console
    
    Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. 
    
    Source	
    URL: chrome-error://chromewebdata/
    Line: 0
    Column: 0
    Description
    Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'.
    
    Source
    URL: chrome-error://chromewebdata/
    Line: 0
    Column: 0
    Description
    Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

    The error in the previous post in “With External and Inline JavaScript combination?turned off?and no exclusions” corresponds to another issue detected by Lighthouse. The one that should be used for comparison with the rest of the previous post is the one in this post.

    Plugin Support qtwrk

    (@qtwrk)

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Browser errors were logged to the console’ is closed to new replies.