[TYPO3-english] scriptmerger & external files

Urs Bräm info at ursbraem.ch
Thu Jun 23 23:42:05 CEST 2011


I have jQuery included from 
https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js and 
scriptmerger works well.

Maybe it would be cool/possible to be able to exclude just certain 
scripts from merging?

Am 22.06.11 19:41, schrieb Mike Gutzschhahn:
> Me culpa … i was too blind. The right regex is quite simple \.com,\.net
> – et voilá
>
> Am 22.06.11 17:13, schrieb Mike Gutzschhahn:
>> I'm using the current version 3.0.1 with TYPO3 4.5.2 – normal regex
>> won't help either. If i try to exclude .com or .net domains, since i've
>> a .de, twitter and Google +1 won't work. Here're all URLs and my regex:
>>
>> http://connect.facebook.net/en_US/all.js
>> http://connect.facebook.net/en_US/all.js#xfbml=1
>> http://platform.twitter.com/widgets.js
>> http://code.jquery.com/jquery-1.5.2.min.js
>> http://static.ak.fbcdn.net/rsrc.php/v1/yh/r/Juua_Gv7yKY.js
>> https://apis.google.com/js/plusone.js
>> https://plusone.google.com/_/apps-static/_/js/plusone/base,pub/rt=j/ver=uCFnTVIzNgE.en_US./am=!kcTMydpRn7WI2PrX/d=1/
>>
>>
>> https://ssl.gstatic.com/webclient/js/gc/21773286-02b1a9f6/googleapis.proxy.js
>>
>>
>> https://ssl.gstatic.com/webclient/js/gc/21773286-02b1a9f6/googleapis.client__plusone.js
>>
>>
>>
>> Regex: /\.com\//
>>
>> At present i don't get a 500, facebook scripts i can exclude but jquery
>> and google were a pain in the …
>>
>>
>> Thanks a lot
>> Mike
>>
>> Am 22.06.11 13:24, schrieb Mike Gutzschhahn:
>>> Hello everyone
>>>
>>> scriptmerger runs very well exept the fact when external functions
>>> such as facebook like, comments or google +1 were included.
>>>
>>> I got an 500 internal server error when i acticate the js functions.
>>> In any constellation, with or without mergin, compression or minifying
>>> i got the error and the be log tells me:
>>>
>>> Core: Error handler (FE): PHP Warning: preg_match() [<a
>>> href='function.preg-match'>function.preg-match</a>]: Compilation failed:
>>> missing ) at offset 16 in
>>> /www/htdocs/w00a9987/typo3/typo3conf/ext/scriptmerger/class.tx_scriptmerger.php
>>>
>>>
>>> line 801
>>>
>>> as well in line 795 at offset 23 and 789 at offset 32. I tried to exlude
>>> external files without success. Does anyone
>>> has a similiar constellation?
>>>
>>>
>>> Thanks a lot
>>> Mike
>>
>


-- 
Urs Bräm
macht Websites
---
Certified Typo3 Integrator
CH-3011 Bern
www.ursbraem.ch


More information about the TYPO3-english mailing list