Remove repetitive YUI javascript

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Remove repetitive YUI javascript

alex.lu
Hello,

I've got several portlets and each portlet gets the same yui and javascript every time they are initiated. Is there any way to avoid retrieving the same resources? Each yui css and javascript is over 300kb and quite costly to our application.

Many thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: Remove repetitive YUI javascript

Erik Bruchez
Administrator
Can you tell if those files are retrieved using the same URL?

The Form Runner proxy portlet serves resources via the portlet. This
means that each portlet will generate its own links for the resources.

But the full portlet serves resources via the Orbeon Forms servlet, at
least in the latest code. If that's the case, then with proper
caching, the resources could be served only once.

-Erik

On Mon, Oct 1, 2012 at 7:21 AM, alex.lu <[hidden email]> wrote:

> Hello,
>
> I've got several portlets and each portlet gets the same yui and javascript
> every time they are initiated. Is there any way to avoid retrieving the same
> resources? Each yui css and javascript is over 300kb and quite costly to our
> application.
>
> Many thanks in advance
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Remove-repetitive-YUI-javascript-tp4655776.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws