• Resolved fabio.vito83

    (@fabiovito83)


    Dear Support,
    I am facing an issue with SG Optimizer. It appears that the option of combining Javascript exclusion does not properly work.
    I am currently using the plugin CartMagician. A page of my staging website is suppose to load an image located in the mentioned plugin folder. However, when the Combining Javascript option is on the image cannot be loaded.
    I have tried to exclude the cartmagiciat javascript from the SG Optimizer combining Javascript option however, nothing changes. On the contrary, if i fully disable the SG Optimizer combining Javascript option, the cartmagician image is properly loaded.
    On this basis, I conclude that the exclusion of SG Optimizer does not properly work because although I exclude the cartmagician javascript it does not really exclude it?!
    Thanks for helping me to fix the problem. If necessary I could provide you the link to the page where the issue occur.
    Looking forward to hearing from you.
    Fabio.

    • This topic was modified 5 years, 7 months ago by fabio.vito83.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hello there @fabiovito83,

    Could you provide a URL, so we can troubleshoot the issue you are having?

    Kind regards,
    Stoyan

    Thread Starter fabio.vito83

    (@fabiovito83)

    Dear Stoyan,

    Thank you for your help.
    This is the URL: https://www.staging3.muranoglassitaly.com/product/glass-blown-chandelier-amoruccio/

    Please open the URL with a Chrome browser in mobile view (the function is disabled for desktop views). You will see a broken image, on the right hand side, above the add to cart button and below the orange text: “Lights: please select from the drop-down list to display price”.

    Currently the SG Optimizer option Combining Javascript is active with the exception of excluding the cartmagician java script.

    Please let me know if you need any other information or action from my side.

    Best regards.

    Fabio.

    Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey Fabio,

    I checked your staging copy. I have noticed something strange about your staging configuration. It looks like the siteurl option in the database is set to your main domain – muranoglassitaly.com. This is leading to some other errors on your website. If you open your console you will see a couple of errors about fonts that are not following the CORS policy. This means that the resources are trying to get loaded from your main domain, but since this conflicting with the CORS policy, the resources are not loading and all of your icons appear as squares.

    About the issue, you are having with the image that is missing. It is caused by the same thing. When the JS combination is enabled and with the current setup of your staging environment, the script is trying to access the image from your main domain https://www.muranoglassitaly.com/wp-content/plugins/cartmagician-pro/assets/img/cartmagician-view-in-space-light.png, but since it is not there it is loading the broken image.

    I would suggest double-checking your staging environment settings.

    I can assure you that the JS Combination and CSS combination is working as expected, as well as the exclude function, but since your environment is not properly set, it is leading to this unexpected behavior.

    If you have any further questions, feel free to post them here.

    Kind regards,
    Stoyan

    Thread Starter fabio.vito83

    (@fabiovito83)

    Dear Stoyan,

    Wow, I was not aware of this mis-configuration. I must get in touch with siteground immediately and sort it out.
    Could you please tell me how I could display the errors about the fonts?
    you speak about a console but it is not clear to me and I would like to have all the information for contacting the hosting.
    Best regards.

    Fabio.

    Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey Fabio,

    When you open the page, just right-click somewhere and click Inspect -> Console.

    There you will be able to see all of the errors if there are any.

    Stoyan

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

The topic ‘Combine Javascript exclusion not working’ is closed to new replies.