Hi,
I'm currently having a problem if I view a page as published.
I get a javascript error saying "Uncaught ReferenceError: KmlMapParser is not defined" but if I add "?debugClientLibs=true" to the end of the URL my problem is fixed.
Can anyone explain what is happening here?
Thanks,
Karl
Solved! Go to Solution.
I have sorted this now.
It was a scoping issue that was caused by the different ways the different modes compile the JS.
Thanks,
Karl
Views
Replies
Total Likes
To me the option writes out separate lines in the JS. Can you check that?
Do you mean that the Javascript isn't compressed?
Thanks,
Karl
Views
Replies
Total Likes
How long do we usually have to wait for an answer?
Thanks,
Karl
Views
Replies
Total Likes
Missed your previous answer, my bad :-)
The option "debugClientLibs=true" is not compressing, but it writes out files one by one in the HTML source.
And around the wait-time: this is a community forum with SLA :-)
Views
Replies
Total Likes
I thought that about the community but I wasn't sure how active it was that's all.
I don't have my local site to compress the JS even without the Debug mode activated.
Everything seems to look like it's in the correct order.
I'll keep checking but it just seems weird how it works in Debug mode.
Thanks,
Karl
Views
Replies
Total Likes
Compressing is done via the minify option via the OSGi-configuation
Views
Replies
Total Likes
Doc here: Using Client-Side Libraries
Views
Replies
Total Likes
Thank you but my code isn't compressing right now and I don't think it should be doing on my local version.
Thanks,
Karl
Views
Replies
Total Likes
Community can respond right away or may take a bit of time - that is the nature of community.
Views
Replies
Total Likes
I have sorted this now.
It was a scoping issue that was caused by the different ways the different modes compile the JS.
Thanks,
Karl
Views
Replies
Total Likes