开发者

Debian - all browsers jquery compressed breaks all js, but uncompressed works fine

In debian linux when u开发者_如何学Csing a browser such as opera or chome the page loads with a js error. This does not happen in any other browser and in fact I cannot even reproduce it, but another user can reproduce it in almost every browser on his system.

The errors are:

[12/07/11 19:08:22] JavaScript - http://demo.phppointofsalestaging.com/js/jquery-1.6.1.min.js
Linked script compilation
Syntax error at line 2 while loading:
,"*":"*/**/*;q=0.01":""):d.accepts["*"])
--------------------^
expected '}', got ':'
[12/07/11 19:08:23] JavaScript - http://demo.phppointofsalestaging.com/index.php
Inline script thread
Uncaught exception: ReferenceError: Undefined variable: $
Error thrown at line 1, column 0 in http://demo.phppointofsalestaging.com/index.php:
    $(document).ready(function()
[12/07/11 19:08:33] JavaScript - http://demo.phppointofsalestaging.com/js/jquery-1.6.1.min.js
Linked script compilation
Syntax error at line 2 while loading:
,"*":"*/**/*;q=0.01":""):d.accepts["*"])
--------------------^

This only happens when jquery is minified, it doesn't happen otherwise. This is mind boggiling.

Debian - all browsers jquery compressed breaks all js, but uncompressed works fine


Just a heads-up...

http://bugs.jquery.com/ticket/10153#comment:2

Your minifier is incorrectly seeing the /* inside a QUOTED string as the beginning of a multi-line Javascript comment. PLEASE DO NOT TAUNT HAPPY FUN JQUERY with a broken minifier; instead use the properly-minified version available at code.jquery.com or any of the CDNs.

  • jQuery Bugs Team
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜