You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Massimo Lusetti <ml...@gmail.com> on 2012/04/04 14:55:19 UTC

Use dataurl for image assets?

Hi everyone,
  what would you think about using dataurl:
http://caniuse.com/#search=dataurl for image assets

Cheers
-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


HTML output of t:alerts intentional?

Posted by Crentana <in...@crentana.de>.
Hi,

just noticed that somehting like alertManager.info("Deleted  
"+item.getName()); may output unfiltered HTML if item.getName() contains  
html.

Is this inteded behaviour?

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


Re: Use dataurl for image assets?

Posted by Kalle Korhonen <ka...@gmail.com>.
On Wed, Apr 4, 2012 at 9:08 AM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> On Wed, 04 Apr 2012 09:55:19 -0300, Massimo Lusetti <ml...@gmail.com>
>>  what would you think about using dataurl:
>> http://caniuse.com/#search=dataurl for image assets
> Why? Wouldn't them end up causing more data to be transferred (base-64 takes
> more bytes than binary and data URLs are not cached)?

Yes, it consumes more bytes but in return you get one less http
request. There's quite a bit of overhead in handling each request, so
there's a size threshold after which it makes more sense to push the
bits embedded in a single request even if as a separate request it'd
be cached. See for example how Google implements displaying its site
preview images.

Massimo, it'd be great if there was a configurable setting that lets
you to automatically embed image assets smaller than certain size.
I've thought about using dataurls for attached images with
tapestry-editablecontent
(http://tynamo.org/tapestry-editablecontent+guide).

Kalle

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Use dataurl for image assets?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, 04 Apr 2012 09:55:19 -0300, Massimo Lusetti <ml...@gmail.com>  
wrote:

> Hi everyone,

Hi!

>   what would you think about using dataurl:
> http://caniuse.com/#search=dataurl for image assets

Why? Wouldn't them end up causing more data to be transferred (base-64  
takes more bytes than binary and data URLs are not cached)?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Use dataurl for image assets?

Posted by Dimitris Zenios <di...@gmail.com>.
Nice idea

On Wed, Apr 4, 2012 at 3:55 PM, Massimo Lusetti <ml...@gmail.com> wrote:
> Hi everyone,
>  what would you think about using dataurl:
> http://caniuse.com/#search=dataurl for image assets
>
> Cheers
> --
> Massimo
> http://meridio.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org