speed up loading time of qooxdoo

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

speed up loading time of qooxdoo

by Oliver Vogel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i know, this is not a qooxdoo and not a javascript solution. it is a php
solution. but if someone has php at the server, she can write
<script language=javascript src="<<path>>/qooxdoo.php">.
then you can create a file called qooxdoo.php with this content:

--- cut ---
<?php
    /**
    * Diese Seite überprüft, ob der Browser komprimierte Dateien
akzeptiert oder nicht.
    * Wenn ja, die komprimierte Datei senden, wenn nein, die nicht
komprimierte Datei senden
    *
    * @author     Oliver Vogel <o.vogel@...>
    * @since      05.03.2006
    */
    $encodings = array();
    if (isset($_SERVER['HTTP_ACCEPT_ENCODING']))
    {
        // Get all available encodings
        $encodings = explode(',', strtolower(preg_replace("/\s+/", "",
$_SERVER['HTTP_ACCEPT_ENCODING'])));
   
        // Check for gzip header
        if (in_array('gzip', $encodings))
        {
            // found: send the zip-ed file
            header("Content-Encoding: gzip");
            echo file_get_contents(getenv('DOCUMENT_ROOT') .
'/yanis42/lib/qooxdoo/script/qooxdoo.js.gz');
            die;
        }
    }
 
    // Encoding not found or gzip not accepted -> send "normal" file
    echo file_get_contents(getenv('DOCUMENT_ROOT') .
'/yanis42/lib/qooxdoo/script/qooxdoo.js');
    die;
?>
--- cut ---

this page checks if the browser supports gzip. if yes, the server sends
the gzip file to the client.

!!This solution needs no gzip - support at the server-side - only php!!

I know, it is NOT  JavaScript but maybe it is a good idea to add this to
the qooxdoo distribution (and it may be a good idea if one with python
or pearl or sowhat experience ports this script to another server-side
programming language)

Olli



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: speed up loading time of qooxdoo

by Sebastian Werner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've added it to our snippet section. Feel free to also add these things
for your own, Oliver.

http://qooxdoo.oss.schlund.de/snippets/compress-qooxdoojs-without-moddeflate

Sebastian


Oliver Vogel schrieb:

> i know, this is not a qooxdoo and not a javascript solution. it is a php
> solution. but if someone has php at the server, she can write
> <script language=javascript src="<<path>>/qooxdoo.php">.
> then you can create a file called qooxdoo.php with this content:
>
> --- cut ---
> <?php
>    /**
>    * Diese Seite überprüft, ob der Browser komprimierte Dateien
> akzeptiert oder nicht.
>    * Wenn ja, die komprimierte Datei senden, wenn nein, die nicht
> komprimierte Datei senden
>    *
>    * @author     Oliver Vogel <o.vogel@...>
>    * @since      05.03.2006
>    */
>    $encodings = array();
>    if (isset($_SERVER['HTTP_ACCEPT_ENCODING']))
>    {
>        // Get all available encodings
>        $encodings = explode(',', strtolower(preg_replace("/\s+/", "",
> $_SERVER['HTTP_ACCEPT_ENCODING'])));
>          // Check for gzip header
>        if (in_array('gzip', $encodings))
>        {
>            // found: send the zip-ed file
>            header("Content-Encoding: gzip");
>            echo file_get_contents(getenv('DOCUMENT_ROOT') .
> '/yanis42/lib/qooxdoo/script/qooxdoo.js.gz');
>            die;
>        }
>    }
>  
>    // Encoding not found or gzip not accepted -> send "normal" file
>    echo file_get_contents(getenv('DOCUMENT_ROOT') .
> '/yanis42/lib/qooxdoo/script/qooxdoo.js');
>    die;
> ?>
> --- cut ---
>
> this page checks if the browser supports gzip. if yes, the server sends
> the gzip file to the client.
>
> !!This solution needs no gzip - support at the server-side - only php!!
>
> I know, it is NOT  JavaScript but maybe it is a good idea to add this to
> the qooxdoo distribution (and it may be a good idea if one with python
> or pearl or sowhat experience ports this script to another server-side
> programming language)
>
> Olli
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> Qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: speed up loading time of qooxdoo

by Hugh Gibson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I've added it to our snippet section.

You beat me to it! We'll certainly be doing this in our custom server.

I've tweaked it and added some missing material.

Hugh


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Parent Message unknown RE: speed up loading time of qooxdoo

by Okan, Varol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey,

Just a thought but how about adding a wiki to the web page ? You might
get some good things out of it.
E.g. the snipplets could grow that way.

Varol :)

-----Original Message-----
From: qooxdoo-devel-admin@...
[mailto:qooxdoo-devel-admin@...] On Behalf Of Hugh
Gibson
Sent: Tuesday, March 07, 2006 4:08 AM
To: qooxdoo-devel@...
Subject: Re: [qooxdoo-devel] speed up loading time of qooxdoo

> I've added it to our snippet section.

You beat me to it! We'll certainly be doing this in our custom server.

I've tweaked it and added some missing material.

Hugh


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: speed up loading time of qooxdoo

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Okan, Varol" <vokan@...> writes:

> Hey,
>
> Just a thought but how about adding a wiki to the web page ? You might
> get some good things out of it.
> E.g. the snipplets could grow that way.
>
> Varol :)

We get requests for bug tracking and wiki on this list on a regular basis.
Last week, I set up a bug tracking system and wiki for qooxdoo.
Unfortunately, it seems that I may have wasted my money (registering the
domain name) and time (setting up the software).

Sebastian, please comment, however briefly.  If you're just too busy right now
but you are happy with what I've done, then tell me so.  If I wasted my time,
tell me so.  I'm trying to help out here, and I feel entirely ignored.  Please
at least present your thoughts.

Thanks,

Derrell


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

RE: speed up loading time of qooxdoo

by Hugh Gibson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Just a thought but how about adding a wiki to the web page ? You might
> get some good things out of it.
> E.g. the snipplets could grow that way.

One was created at http://wiki.qooxdoo.org/wiki and we're just in the early stages of thinking about using it.

See the thread at http://www.nabble.com/image-issues-in-QxListView-t1199640.html - it's introduced part way through.

Hugh


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: speed up loading time of qooxdoo

by Kent Olsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sebastian!

It is time to answer and point out the direction in this matter. For
decency at least a time line or a refusal. Why not open up for
speculations?

I do not think that Derrells idea was to take over, control or abuse the
name of Qooxdoo. I guess his interest is pure, honest and he can be one
of us helping us all out. The question is with what, but by acting he
shows at least that he wants to be part of it. Somewhere you need to
start.

I like when people take initiatives. The problem is always when many
people take initiatives, to keep the package together. So far I can not
see too many reaching that spirit yet, but ....

Please, give the list a proper answer in this topic! This is important,
though it is boring with bugs! :-)))

Kent

On Tue, 2006-03-07 at 09:21 -0500, Derrell.Lipman@...
wrote:

> "Okan, Varol" <vokan@...> writes:
>
> > Hey,
> >
> > Just a thought but how about adding a wiki to the web page ? You might
> > get some good things out of it.
> > E.g. the snipplets could grow that way.
> >
> > Varol :)
>
> We get requests for bug tracking and wiki on this list on a regular basis.
> Last week, I set up a bug tracking system and wiki for qooxdoo.
> Unfortunately, it seems that I may have wasted my money (registering the
> domain name) and time (setting up the software).
>
> Sebastian, please comment, however briefly.  If you're just too busy right now
> but you are happy with what I've done, then tell me so.  If I wasted my time,
> tell me so.  I'm trying to help out here, and I feel entirely ignored.  Please
> at least present your thoughts.
>
> Thanks,
>
> Derrell
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> Qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: speed up loading time of qooxdoo

by Ben Alex-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kent Olsson wrote:
> Please, give the list a proper answer in this topic! This is important,
> though it is boring with bugs! :-)))
>  
>
Just to relate some experience of open source with Acegi Security
(www.acegisecurity.org), of which I am project lead, I have found the
addition of issue tracking very valuable. Whilst I had initial
hesitation, as a project grows it's liberating being able to direct the
community to a particular tool to log bugs or feature suggestions. The
reason is that it acts as a managed list of tasks, which I can go and
deal with as and when I get time. The alternative is to track everything
manually, or respond instantly, which is possible in the beginning of an
open source project but simply doesn't scale in line with the community.
Qooxdoo is an incredible framework, and it *will* scale (assuming we can
get tabs to wrap as per my earlier email) ;-)  so it's perhaps
worthwhile to put issue tracking in place. Core developers need to
remember that not every issue needs to be answered or addressed. Many
issues are marked as "won't fix" or "cannot duplicate" or "not enough
information". It doesn't require extra time overall. I've found it
actually saves me time overall, as I can devote specific days to
resolving issues (and I get a lot more done on such days than spending a
little bit of time resolving issues every day).

Issue tracking also gives one other major benefit in that the list
doesn't need to be bombarded with code contributions and patches
constantly. Again, these are fine initially but as you get a few hundred
and then thousand on this list, people will start to become frustrated
with it. Issue tracking gives a single place where people can be sent to
obtain the latest version of some code (like split pane or logging
consoles), and only after the code "settles down" can it (eventually) be
entered into CVS.

In relation to the Qooxdoo domain name, I personally would transfer the
name to Sebastian at the earliest opportunity. Think of it as a donation
for a generous contribution to the open source community. It's good to
take the initiative, but it's important that critical resources like
domain names are held by whoever is the project lead of the day.

Cheers
Ben


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: speed up loading time of qooxdoo

by Sebastian Werner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okan, Varol schrieb:
> Hey,
>
> Just a thought but how about adding a wiki to the web page ? You might
> get some good things out of it.
> E.g. the snipplets could grow that way.

Yes, this is already planned a long time. We have just a small delay
with our own server solution here.

Sebastian

>
> Varol :)
>
> -----Original Message-----
> From: qooxdoo-devel-admin@...
> [mailto:qooxdoo-devel-admin@...] On Behalf Of Hugh
> Gibson
> Sent: Tuesday, March 07, 2006 4:08 AM
> To: qooxdoo-devel@...
> Subject: Re: [qooxdoo-devel] speed up loading time of qooxdoo
>
>> I've added it to our snippet section.
>
> You beat me to it! We'll certainly be doing this in our custom server.
>
> I've tweaked it and added some missing material.
>
> Hugh
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> Qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> Qooxdoo-devel mailing list
> Qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel