-
-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minified builds do not work in some circumstances #1017
Comments
The specific build you link to in your example, https://cdn.conversejs.org/3.3.2/dist/converse.min.js, works fine for me. In fact, it can be tested live here: https://conversejs.org/3.3.2/ So I'm a bit confused. Is that the actual build that's giving you problems, or are you using another build? |
Thanks for the quick response. The example is the actual file that fails. Removing ".min" from the filenames fixes the issues. So, the problem appears to be the browser? I'll check a various clients and report back. This error is from this client:
|
Same issue in safari. Regex error in the js.map -- I'm scratching my head. I am inclined to think it's something situational on my end, but I haven't got a clue. I'm serving the html file from a server on my local host. I'll deploy it into the wild and see what happens. |
In Safari, the browser window shows this information: I'm not sure that this is entirely relevant. it only happens with safari, while the html file is being served from http://localhost. |
https://hashbang.info/index_converse_min.html The minified one does not work for me, in any browser on my mac, although it works fine from your site. The example is cut and paste from the documentation. Your actual website works fine from my computer. scratches head
|
I tested your example code as-is yesterday before I replied and it worked for me. Try to do a hard refresh of all CDN assets through the browser. Perhaps something is cached. The bourbon error is something else, that's CSS. To fix that, remove |
I have never used firefox before. Just installed it. It exhibits the same issue. I'm waiting on an ubuntu install to try it there. |
@richard-fairthorne any update on this? |
The error looks like something feed UTF-8 data into a parser expecting Latin1. There doesn't seem to be any encoding specified on the HTML data from those pages on |
I confirm this issue. |
I confirm the workaround that Zash and badfiles are using. https://hashbang.info/index_converse_min_utf-8.html It seems as though, for a wide variety of browsers on mac, it only works after setting the character set to UTF-8. Is this something that a BOM could solve? I had to find a temporary solution, but I'd love to switch back. I'll see if I can find a fix that doesn't require possibly breaking changes to websites. |
Easy peazy! If the documentation were updated to include the following tag, or similar, the problem would be resolved:
This solution is based on Zash/badfiles, requires no code changes, and fixes the problem across all of my browsers. https://hashbang.info/index_converse_min_utf-8_script.html Thanks for your help everyone. I'm patching the documentation now, for your consideration. |
Minified builds found on CDN's do not work. They produce errors related to emojione.
example
result in chrome
workaround
Do not use minified builds
suggested temporary fixes
ideal fix
Hope that's enough data. I nearly gave up adopting this 2 hours after finding it, because it was hard for me to debug given lack of familiarity with the project.
The text was updated successfully, but these errors were encountered: