load time slow when using require

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

load time slow when using require

by Brent Hamby :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am building a simple single page discussion forum app which has the following requires:

dojo.require("dojo.NodeList-fx");
dojo.require("dojox.validate");
dojo.require("dojox.validate.web");
dojo.require("dojo.parser");
dojo.require("dijit.Editor");
dojo.require("dijit.Dialog");

From inside my LAN it is really fast.  But when accessing it from outside it takes over 10 seconds.  There is something funky happening with the requires, there is a lot of stuff loading, and it appears to load serially.  I am sure I am missing something but I cannot find anything in the docs to clear up the issue.

Any advice would be great, the page is at:

http://nextdb.net/discussion_2.html

Thanks!

Brent
www.nextDB.net


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: load time slow when using require

by Dylan Schiemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brent,

You're right, out of the box dojo.requires's do call files
synchronously, but they make it really easy for development.

For production, you're ready to create a custom Dojo build to merge
these resources into as few files as possible.  Check out
http://dojotoolkit.org/book/dojo-book-0-9/part-4-meta-dojo/package-system-and-custom-builds
for more details, or ask here if something along the way doesn't make sense.

Regards,
- -Dylan

Brent Hamby wrote:
| I am building a simple single page discussion forum app which has the
| following requires:
|
| dojo.require("dojo.NodeList-fx");
| dojo.require("dojox.validate");
| dojo.require("dojox.validate.web");
| dojo.require("dojo.parser");
| dojo.require("dijit.Editor");
| dojo.require("dijit.Dialog");
|
|  From inside my LAN it is really fast.  But when accessing it from
| outside it takes over 10 seconds.  There is something funky happening
| with the requires, there is a lot of stuff loading, and it appears to
| load serially.  I am sure I am missing something but I cannot find
| anything in the docs to clear up the issue.
|
| Any advice would be great, the page is at:
|
| http://nextdb.net/discussion_2.html
|
| Thanks!
|
| Brent
| www.nextDB.net <http://www.nextDB.net>
|
|
| ------------------------------------------------------------------------
|
| _______________________________________________
| FAQ: http://dojotoolkit.org/support/faq
| Book: http://dojotoolkit.org/docs/book
| Forums: http://dojotoolkit.org/forum
| Dojo-interest@...
| http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIgDgX8nLgh/JJsxERAqE4AJ9xfTSrHky3mEzO7UhEG80y3u63XACfTdZ4
LMh8M2HiwiFuoqD2fqRa/rM=
=S14B
-----END PGP SIGNATURE-----
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: load time slow when using require

by Karl Tiedt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you are in production phase of this app, you should be using a custom build... plenty of documentation available on the website under the Dojo Book 1.0 or 1.1 (dont recall what the book version states)

-Karl Tiedt

On Fri, Jul 18, 2008 at 12:41 AM, Brent Hamby <brenthamby@...> wrote:
I am building a simple single page discussion forum app which has the following requires:

dojo.require("dojo.NodeList-fx");
dojo.require("dojox.validate");
dojo.require("dojox.validate.web");
dojo.require("dojo.parser");
dojo.require("dijit.Editor");
dojo.require("dijit.Dialog");

From inside my LAN it is really fast.  But when accessing it from outside it takes over 10 seconds.  There is something funky happening with the requires, there is a lot of stuff loading, and it appears to load serially.  I am sure I am missing something but I cannot find anything in the docs to clear up the issue.

Any advice would be great, the page is at:

http://nextdb.net/discussion_2.html

Thanks!

Brent
www.nextDB.net


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...

http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: load time slow when using require

by Brent Hamby :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the feedback.  I took your advice and put everything into one file, it helped a bit but I am still experiencing slow load times, upwards of 5 seconds the first time the page loads.

Take a look:  http://www.nextdb.net/discussion.html

Is there anyway to put up a 'loading...' message while Dojo is loading? 

Thanks!

Brent Hamby
www.nextdb.net
The hosted AJAX Database



On Thu, Jul 17, 2008 at 11:30 PM, Karl Tiedt <ktiedt@...> wrote:
If you are in production phase of this app, you should be using a custom build... plenty of documentation available on the website under the Dojo Book 1.0 or 1.1 (dont recall what the book version states)

-Karl Tiedt

On Fri, Jul 18, 2008 at 12:41 AM, Brent Hamby <brenthamby@...> wrote:
I am building a simple single page discussion forum app which has the following requires:

dojo.require("dojo.NodeList-fx");
dojo.require("dojox.validate");
dojo.require("dojox.validate.web");
dojo.require("dojo.parser");
dojo.require("dijit.Editor");
dojo.require("dijit.Dialog");

From inside my LAN it is really fast.  But when accessing it from outside it takes over 10 seconds.  There is something funky happening with the requires, there is a lot of stuff loading, and it appears to load serially.  I am sure I am missing something but I cannot find anything in the docs to clear up the issue.

Any advice would be great, the page is at:

http://nextdb.net/discussion_2.html

Thanks!

Brent
www.nextDB.net




_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...

http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest




--
Brent Hamby
brenthamby@...
mobile: 510.421.5232
---The content of this email is confidential.---

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: load time slow when using require

by Kris Zyp-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

You could probably substantially decrease your load times by turning on gzip/deflate (sorry, I am not sure how you do that with Resin).
Kris
----- Original Message -----
Sent: Wednesday, August 06, 2008 8:17 PM
Subject: Re: [Dojo-interest] load time slow when using require

Thanks for the feedback.  I took your advice and put everything into one file, it helped a bit but I am still experiencing slow load times, upwards of 5 seconds the first time the page loads.

Take a look:  http://www.nextdb.net/discussion.html

Is there anyway to put up a 'loading...' message while Dojo is loading? 

Thanks!

Brent Hamby
www.nextdb.net
The hosted AJAX Database



On Thu, Jul 17, 2008 at 11:30 PM, Karl Tiedt <ktiedt@...> wrote:
If you are in production phase of this app, you should be using a custom build... plenty of documentation available on the website under the Dojo Book 1.0 or 1.1 (dont recall what the book version states)

-Karl Tiedt

On Fri, Jul 18, 2008 at 12:41 AM, Brent Hamby <brenthamby@...> wrote:
I am building a simple single page discussion forum app which has the following requires:

dojo.require("dojo.NodeList-fx");
dojo.require("dojox.validate");
dojo.require("dojox.validate.web");
dojo.require("dojo.parser");
dojo.require("dijit.Editor");
dojo.require("dijit.Dialog");

From inside my LAN it is really fast.  But when accessing it from outside it takes over 10 seconds.  There is something funky happening with the requires, there is a lot of stuff loading, and it appears to load serially.  I am sure I am missing something but I cannot find anything in the docs to clear up the issue.

Any advice would be great, the page is at:

http://nextdb.net/discussion_2.html

Thanks!

Brent
www.nextDB.net




_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...

http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest




--
Brent Hamby
brenthamby@...
mobile: 510.421.5232
---The content of this email is confidential.---


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
LightInTheBox - Buy quality products at wholesale price