COMBINE_SCRIPTS no effect

View: New views
6 Messages — Rating Filter:   Alert me  

COMBINE_SCRIPTS no effect

by Moritz Gmelin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just found out that some of our pages do generate a number of JS  
head elements.

Although

configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");


is given in contributeApplicationDefaults

Other pages do correctly combine all scripts in a single .js file with  
a very long file name.
Is this a known issue or a feature that I do not understand yet?

Thanks

Moritz



--
Dipl.-Inform.
Moritz Gmelin
avetana GmbH
Geschäftsführer
Brändströmstr. 8
76275 Ettlingen

Tel: 07000-AVETANA  (07000-2838262)
eMail: moritz.gmelin@...
Internet: www.avetana-gmbh.de

Geschäftsführer: Moritz Gmelin
Sitz der Gesellschaft: Ettlingen
Amtsgericht Mannheim HRB 362834
UST-ID DE211535427



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: COMBINE_SCRIPTS no effect

by Howard Lewis Ship :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It depends on how the scripts are added to the head; only scripts added via
RenderSupport.addScriptLink() will be combined; in addition, combination is
turned off in development mode (by default).

On Mon, Jun 29, 2009 at 6:59 AM, Moritz Gmelin <moritz.gmelin@...>wrote:

> Hi,
>
> I just found out that some of our pages do generate a number of JS head
> elements.
>
> Although
>
> configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
>
>
> is given in contributeApplicationDefaults
>
> Other pages do correctly combine all scripts in a single .js file with a
> very long file name.
> Is this a known issue or a feature that I do not understand yet?
>
> Thanks
>
> Moritz
>
>
>
> --
> Dipl.-Inform.
> Moritz Gmelin
> avetana GmbH
> Geschäftsführer
> Brändströmstr. 8
> 76275 Ettlingen
>
> Tel: 07000-AVETANA  (07000-2838262)
> eMail: moritz.gmelin@...
> Internet: www.avetana-gmbh.de
>
> Geschäftsführer: Moritz Gmelin
> Sitz der Gesellschaft: Ettlingen
> Amtsgericht Mannheim HRB 362834
> UST-ID DE211535427
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


--
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

Re: COMBINE_SCRIPTS no effect

by moritzg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does it mean that the stuff that is injected into components via

@IncludeJavaScriptLibrary

is not combined?

Does this make sense?
Also in the pages where no script combination takes place I can see  
all the links to tapestry.js, effects.js and other standard scripts.  
Is this correct? Remember that on other pages (of the same  
application) everything is integrated in one big js file.

M.


Am 29.06.2009 um 18:11 schrieb Howard Lewis Ship:

> It depends on how the scripts are added to the head; only scripts  
> added via
> RenderSupport.addScriptLink() will be combined; in addition,  
> combination is
> turned off in development mode (by default).
>
> On Mon, Jun 29, 2009 at 6:59 AM, Moritz Gmelin <moritz.gmelin@...
> >wrote:
>
>> Hi,
>>
>> I just found out that some of our pages do generate a number of JS  
>> head
>> elements.
>>
>> Although
>>
>> configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
>>
>>
>> is given in contributeApplicationDefaults
>>
>> Other pages do correctly combine all scripts in a single .js file  
>> with a
>> very long file name.
>> Is this a known issue or a feature that I do not understand yet?
>>
>> Thanks
>>
>> Moritz
>>
>>
>>
>> --
>> Dipl.-Inform.
>> Moritz Gmelin
>> avetana GmbH
>> Geschäftsführer
>> Brändströmstr. 8
>> 76275 Ettlingen
>>
>> Tel: 07000-AVETANA  (07000-2838262)
>> eMail: moritz.gmelin@...
>> Internet: www.avetana-gmbh.de
>>
>> Geschäftsführer: Moritz Gmelin
>> Sitz der Gesellschaft: Ettlingen
>> Amtsgericht Mannheim HRB 362834
>> UST-ID DE211535427
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
> Director of Open Source Technology at Formos


Re: COMBINE_SCRIPTS no effect

by Howard Lewis Ship :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

@IncludeJavaScriptLibrary uses RenderSupport under the covers; I meant when
your Layout.tml includes <script src=""> elements. Those are not recognized
by Tapestry and are not aggregated.

On Mon, Jun 29, 2009 at 11:43 PM, Moritz Gmelin <moritz.gmelin@...>wrote:

> Does it mean that the stuff that is injected into components via
>
> @IncludeJavaScriptLibrary
>
> is not combined?
>
> Does this make sense?
> Also in the pages where no script combination takes place I can see all the
> links to tapestry.js, effects.js and other standard scripts. Is this
> correct? Remember that on other pages (of the same application) everything
> is integrated in one big js file.
>
> M.
>
>
> Am 29.06.2009 um 18:11 schrieb Howard Lewis Ship:
>
>
>  It depends on how the scripts are added to the head; only scripts added
>> via
>> RenderSupport.addScriptLink() will be combined; in addition, combination
>> is
>> turned off in development mode (by default).
>>
>> On Mon, Jun 29, 2009 at 6:59 AM, Moritz Gmelin <moritz.gmelin@...
>> >wrote:
>>
>>  Hi,
>>>
>>> I just found out that some of our pages do generate a number of JS head
>>> elements.
>>>
>>> Although
>>>
>>> configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
>>>
>>>
>>> is given in contributeApplicationDefaults
>>>
>>> Other pages do correctly combine all scripts in a single .js file with a
>>> very long file name.
>>> Is this a known issue or a feature that I do not understand yet?
>>>
>>> Thanks
>>>
>>> Moritz
>>>
>>>
>>>
>>> --
>>> Dipl.-Inform.
>>> Moritz Gmelin
>>> avetana GmbH
>>> Geschäftsführer
>>> Brändströmstr. 8
>>> 76275 Ettlingen
>>>
>>> Tel: 07000-AVETANA  (07000-2838262)
>>> eMail: moritz.gmelin@...
>>> Internet: www.avetana-gmbh.de
>>>
>>> Geschäftsführer: Moritz Gmelin
>>> Sitz der Gesellschaft: Ettlingen
>>> Amtsgericht Mannheim HRB 362834
>>> UST-ID DE211535427
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator of Apache Tapestry
>> Director of Open Source Technology at Formos
>>
>
>


--
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

Re: COMBINE_SCRIPTS no effect

by moritzg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, then it seems that there is something wrong.

As I said on some pages of the application I can see a header like  
this (correct)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd 
"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Avetana  
Patientenakte</title><meta content="text/html; charset=UTF-8" http-
equiv="Content-Type"></meta><link type="text/css" rel="stylesheet"  
href="/avetanafile/assets/tapestry/5.1.0.5/default.css"></link><link  
type="text/css" rel="stylesheet" href="/avetanafile/assets/blackbird/
5.1.0.5/blackbird.css"></link><link type="text/css" rel="stylesheet"  
href="/avetanafile/assets/classpath/ded21e67620ae96/assets/css/
patientenakte.css"></link><link type="text/css" rel="stylesheet"  
href="/avetanafile/assets/classpath/ded21e67620ae96/assets/css/
startpage.css"></link><link href="/avetanafile/assets/classpath/
ded21e67620ae96/assets/default/default.ico" rel="shortcut icon"></
link><link href="/avetanafile/assets/classpath/ded21e67620ae96/apple-
touch-icon.png" rel="apple-touch-icon"></link><meta content="Apache  
Tapestry Framework (version 5.1.0.5)" name="generator"></meta><script  
src="/avetanafile/assets/virtual/
H4sIAAAAAAAAAIXPQQrCMBCF4XGhC88hIoJJXfQ8Mk2nUq0k5E0X9UxerXcoERJwU7c
$002fHw$002feZ6btm2izJ6IdnS0DorBwsQ
$
002fKbhz8CFubq6lMbUP06nUKYh4gs25
$
002favKndS9dJ06
$002f8pClchBonArKIaljVs3A7tn0sS2slOSqv2uXlwB8F9za9GwBLeal3hMBAAA
$003d.js" type="text/javascript"></script></head>

For other the header is like this (seperate js includes for every  
script)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd 
"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Doe, John</
title><meta content="text/html; charset=UTF-8" http-equiv="Content-
Type"></meta><link type="text/css" rel="stylesheet" href="/avetanafile/
assets/tapestry/5.1.0.5/default.css"></link><link type="text/css"  
rel="stylesheet" href="/avetanafile/assets/blackbird/5.1.0.5/
blackbird.css"></link><link type="text/css" rel="stylesheet" href="/
avetanafile/assets/classpath/ded21e67620ae96/assets/css/
patientenakte.css"></link><link type="text/css" rel="stylesheet"  
href="/avetanafile/assets/classpath/ded21e67620ae96/avetana.css"></link>
<link href="/avetanafile/assets/classpath/ded21e67620ae96/avetana.ico"  
rel="shortcut icon"></link><meta content="Apache Tapestry Framework  
(version 5.1.0.5)" name="generator"></meta><script src="/avetanafile/
assets/scriptaculous/5.1.0.5/prototype.js" type="text/javascript"></
script><script src="/avetanafile/assets/scriptaculous/5.1.0.5/
scriptaculous.js" type="text/javascript"></script><script src="/
avetanafile/assets/scriptaculous/5.1.0.5/effects.js" type="text/
javascript"></script><script src="/avetanafile/assets/tapestry/5.1.0.5/
tapestry.js" type="text/javascript"></script><script src="/avetanafile/
assets/blackbird/5.1.0.5/blackbird.js" type="text/javascript"></
script><script src="/avetanafile/assets/tapestry/5.1.0.5/tapestry-
messages_de.js" type="text/javascript"></script><script src="/
avetanafile/assets/classpath/ded21e67620ae96/assets/js/
InPlacePrompt.js" type="text/javascript"></script><script src="/
avetanafile/assets/app/ded21e67620ae96/components/navigation/js/
popupwindow.js" type="text/javascript"></script><script src="/
avetanafile/assets/classpath/ded21e67620ae96/assets/js/gridselect.js"  
type="text/javascript"></script><script src="/avetanafile/dwr/
interface/DWRUpdater.js" type="text/javascript"></script><script src="/
avetanafile/assets/classpath/ded21e67620ae96/org/directwebremoting/
util.js" type="text/javascript"></script><script src="/avetanafile/
assets/classpath/ded21e67620ae96/org/directwebremoting/engine.js"  
type="text/javascript"></script><script src="/avetanafile/assets/
classpath/ded21e67620ae96/org/directwebremoting/webwork/
DWRActionUtil.js" type="text/javascript"></script><script src="/
avetanafile/assets/classpath/ded21e67620ae96/assets/js/
DWRUpdaterHelper.js" type="text/javascript"></script></head>


Am 30.06.2009 um 16:33 schrieb Howard Lewis Ship:

> @IncludeJavaScriptLibrary uses RenderSupport under the covers; I  
> meant when
> your Layout.tml includes <script src=""> elements. Those are not  
> recognized
> by Tapestry and are not aggregated.
>
> On Mon, Jun 29, 2009 at 11:43 PM, Moritz Gmelin  
> <moritz.gmelin@...>wrote:
>
>> Does it mean that the stuff that is injected into components via
>>
>> @IncludeJavaScriptLibrary
>>
>> is not combined?
>>
>> Does this make sense?
>> Also in the pages where no script combination takes place I can see  
>> all the
>> links to tapestry.js, effects.js and other standard scripts. Is this
>> correct? Remember that on other pages (of the same application)  
>> everything
>> is integrated in one big js file.
>>
>> M.
>>
>>
>> Am 29.06.2009 um 18:11 schrieb Howard Lewis Ship:
>>
>>
>> It depends on how the scripts are added to the head; only scripts  
>> added
>>> via
>>> RenderSupport.addScriptLink() will be combined; in addition,  
>>> combination
>>> is
>>> turned off in development mode (by default).
>>>
>>> On Mon, Jun 29, 2009 at 6:59 AM, Moritz Gmelin <moritz.gmelin@...
>>>> wrote:
>>>
>>> Hi,
>>>>
>>>> I just found out that some of our pages do generate a number of  
>>>> JS head
>>>> elements.
>>>>
>>>> Although
>>>>
>>>> configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
>>>>
>>>>
>>>> is given in contributeApplicationDefaults
>>>>
>>>> Other pages do correctly combine all scripts in a single .js file  
>>>> with a
>>>> very long file name.
>>>> Is this a known issue or a feature that I do not understand yet?
>>>>
>>>> Thanks
>>>>
>>>> Moritz
>>>>
>>>>
>>>>
>>>> --
>>>> Dipl.-Inform.
>>>> Moritz Gmelin
>>>> avetana GmbH
>>>> Geschäftsführer
>>>> Brändströmstr. 8
>>>> 76275 Ettlingen
>>>>
>>>> Tel: 07000-AVETANA  (07000-2838262)
>>>> eMail: moritz.gmelin@...
>>>> Internet: www.avetana-gmbh.de
>>>>
>>>> Geschäftsführer: Moritz Gmelin
>>>> Sitz der Gesellschaft: Ettlingen
>>>> Amtsgericht Mannheim HRB 362834
>>>> UST-ID DE211535427
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>
>>>>
>>>
>>> --
>>> Howard M. Lewis Ship
>>>
>>> Creator of Apache Tapestry
>>> Director of Open Source Technology at Formos
>>>
>>
>>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
> Director of Open Source Technology at Formos


RE: COMBINE_SCRIPTS no effect

by Andy Blower :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We've also been having some problems with script combination, one of which is caused by T5 switching off combination when an external script is requested. I don't know if this is causing your problems, but that's why some pages of our app were not having the scripts combined.

I don't see why T5 can't combine all of the local scripts and just exclude the external ones and have them included separately, and I'll be raising a JIRA issue to this effect unless I can find an existing one.

Andy.

> -----Original Message-----
> From: Moritz Gmelin [mailto:moritz.gmelin@...]
> Sent: 30 June 2009 20:36
> To: Tapestry users
> Subject: Re: COMBINE_SCRIPTS no effect
>
> Well, then it seems that there is something wrong.
>
> As I said on some pages of the application I can see a header like
> this (correct)
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd
> "><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Avetana
> Patientenakte</title><meta content="text/html; charset=UTF-8" http-
> equiv="Content-Type"></meta><link type="text/css" rel="stylesheet"
> href="/avetanafile/assets/tapestry/5.1.0.5/default.css"></link><link
> type="text/css" rel="stylesheet" href="/avetanafile/assets/blackbird/
> 5.1.0.5/blackbird.css"></link><link type="text/css" rel="stylesheet"
> href="/avetanafile/assets/classpath/ded21e67620ae96/assets/css/
> patientenakte.css"></link><link type="text/css" rel="stylesheet"
> href="/avetanafile/assets/classpath/ded21e67620ae96/assets/css/
> startpage.css"></link><link href="/avetanafile/assets/classpath/
> ded21e67620ae96/assets/default/default.ico" rel="shortcut icon"></
> link><link href="/avetanafile/assets/classpath/ded21e67620ae96/apple-
> touch-icon.png" rel="apple-touch-icon"></link><meta content="Apache
> Tapestry Framework (version 5.1.0.5)" name="generator"></meta><script
> src="/avetanafile/assets/virtual/
> H4sIAAAAAAAAAIXPQQrCMBCF4XGhC88hIoJJXfQ8Mk2nUq0k5E0X9UxerXcoERJwU7c
> $002fHw$002feZ6btm2izJ6IdnS0DorBwsQ
> $
> 002fKbhz8CFubq6lMbUP06nUKYh4gs25
> $
> 002favKndS9dJ06
> $002f8pClchBonArKIaljVs3A7tn0sS2slOSqv2uXlwB8F9za9GwBLeal3hMBAAA
> $003d.js" type="text/javascript"></script></head>
>
> For other the header is like this (seperate js includes for every
> script)
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd
> "><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Doe, John</
> title><meta content="text/html; charset=UTF-8" http-equiv="Content-
> Type"></meta><link type="text/css" rel="stylesheet" href="/avetanafile/
> assets/tapestry/5.1.0.5/default.css"></link><link type="text/css"
> rel="stylesheet" href="/avetanafile/assets/blackbird/5.1.0.5/
> blackbird.css"></link><link type="text/css" rel="stylesheet" href="/
> avetanafile/assets/classpath/ded21e67620ae96/assets/css/
> patientenakte.css"></link><link type="text/css" rel="stylesheet"
> href="/avetanafile/assets/classpath/ded21e67620ae96/avetana.css"></link
> >
> <link href="/avetanafile/assets/classpath/ded21e67620ae96/avetana.ico"
> rel="shortcut icon"></link><meta content="Apache Tapestry Framework
> (version 5.1.0.5)" name="generator"></meta><script src="/avetanafile/
> assets/scriptaculous/5.1.0.5/prototype.js" type="text/javascript"></
> script><script src="/avetanafile/assets/scriptaculous/5.1.0.5/
> scriptaculous.js" type="text/javascript"></script><script src="/
> avetanafile/assets/scriptaculous/5.1.0.5/effects.js" type="text/
> javascript"></script><script src="/avetanafile/assets/tapestry/5.1.0.5/
> tapestry.js" type="text/javascript"></script><script src="/avetanafile/
> assets/blackbird/5.1.0.5/blackbird.js" type="text/javascript"></
> script><script src="/avetanafile/assets/tapestry/5.1.0.5/tapestry-
> messages_de.js" type="text/javascript"></script><script src="/
> avetanafile/assets/classpath/ded21e67620ae96/assets/js/
> InPlacePrompt.js" type="text/javascript"></script><script src="/
> avetanafile/assets/app/ded21e67620ae96/components/navigation/js/
> popupwindow.js" type="text/javascript"></script><script src="/
> avetanafile/assets/classpath/ded21e67620ae96/assets/js/gridselect.js"
> type="text/javascript"></script><script src="/avetanafile/dwr/
> interface/DWRUpdater.js" type="text/javascript"></script><script src="/
> avetanafile/assets/classpath/ded21e67620ae96/org/directwebremoting/
> util.js" type="text/javascript"></script><script src="/avetanafile/
> assets/classpath/ded21e67620ae96/org/directwebremoting/engine.js"
> type="text/javascript"></script><script src="/avetanafile/assets/
> classpath/ded21e67620ae96/org/directwebremoting/webwork/
> DWRActionUtil.js" type="text/javascript"></script><script src="/
> avetanafile/assets/classpath/ded21e67620ae96/assets/js/
> DWRUpdaterHelper.js" type="text/javascript"></script></head>
>
>
> Am 30.06.2009 um 16:33 schrieb Howard Lewis Ship:
>
> > @IncludeJavaScriptLibrary uses RenderSupport under the covers; I
> > meant when
> > your Layout.tml includes <script src=""> elements. Those are not
> > recognized
> > by Tapestry and are not aggregated.
> >
> > On Mon, Jun 29, 2009 at 11:43 PM, Moritz Gmelin
> > <moritz.gmelin@...>wrote:
> >
> >> Does it mean that the stuff that is injected into components via
> >>
> >> @IncludeJavaScriptLibrary
> >>
> >> is not combined?
> >>
> >> Does this make sense?
> >> Also in the pages where no script combination takes place I can see
> >> all the
> >> links to tapestry.js, effects.js and other standard scripts. Is this
> >> correct? Remember that on other pages (of the same application)
> >> everything
> >> is integrated in one big js file.
> >>
> >> M.
> >>
> >>
> >> Am 29.06.2009 um 18:11 schrieb Howard Lewis Ship:
> >>
> >>
> >> It depends on how the scripts are added to the head; only scripts
> >> added
> >>> via
> >>> RenderSupport.addScriptLink() will be combined; in addition,
> >>> combination
> >>> is
> >>> turned off in development mode (by default).
> >>>
> >>> On Mon, Jun 29, 2009 at 6:59 AM, Moritz Gmelin
> <moritz.gmelin@...
> >>>> wrote:
> >>>
> >>> Hi,
> >>>>
> >>>> I just found out that some of our pages do generate a number of
> >>>> JS head
> >>>> elements.
> >>>>
> >>>> Although
> >>>>
> >>>> configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
> >>>>
> >>>>
> >>>> is given in contributeApplicationDefaults
> >>>>
> >>>> Other pages do correctly combine all scripts in a single .js file
> >>>> with a
> >>>> very long file name.
> >>>> Is this a known issue or a feature that I do not understand yet?
> >>>>
> >>>> Thanks
> >>>>
> >>>> Moritz
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Dipl.-Inform.
> >>>> Moritz Gmelin
> >>>> avetana GmbH
> >>>> Geschäftsführer
> >>>> Brändströmstr. 8
> >>>> 76275 Ettlingen
> >>>>
> >>>> Tel: 07000-AVETANA  (07000-2838262)
> >>>> eMail: moritz.gmelin@...
> >>>> Internet: www.avetana-gmbh.de
> >>>>
> >>>> Geschäftsführer: Moritz Gmelin
> >>>> Sitz der Gesellschaft: Ettlingen
> >>>> Amtsgericht Mannheim HRB 362834
> >>>> UST-ID DE211535427
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------------
> ---
> >>>> To unsubscribe, e-mail: users-unsubscribe@...
> >>>> For additional commands, e-mail: users-help@...
> >>>>
> >>>>
> >>>>
> >>>
> >>> --
> >>> Howard M. Lewis Ship
> >>>
> >>> Creator of Apache Tapestry
> >>> Director of Open Source Technology at Formos
> >>>
> >>
> >>
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator of Apache Tapestry
> > Director of Open Source Technology at Formos



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...