It only works loading from fancybox CDN, but I want to avoid add another domain to the site loading because of performance, so I need to load from my domain.
js uploaded in Design Manager returns Uncaught SyntaxError
Hey @gsantos1 yes, and I would suggest you to try loading the script with the async attribute set to true. This will allow the script to load without blocking the rest of the page.
js uploaded in Design Manager returns Uncaught SyntaxError
Dear @gsantos1, I'm not sure what is causing the issue. It could be related to the minifying process, or it could be related to the way the file is being loaded.
However, You could try loading the file directly from your theme instead of using the get_**bleep**et_url() function to see if that makes any difference.
And also, you could try debugging the code to see why the syntax error is being thrown.