Page 1 of 1

Regeneration of large amounts of JS on each page load

PostPosted: 03 Sep 2010, 06:36
by JWard
Just curious if there's a reason why you regenerate a large chunk of javascript on each page load (i.e. a dynamic file of javascript that gets pushed out to the browser on each page load). Is it for convenience / ease of development only?

The reason that I ask is that the dynamic file is set to never cache, and is fairly large in size and pushing that each time a page loads is a waste of bandwidth and a performance. Have you considered splitting this into two files, one long-term cachable (libraries, jquery plugins, etc) and the other much smaller file could continue to be dynamic? This would end up allowing the browser to cache the majority of the javascript and not request it from the server each time, plus would save on PHP generation time.

Just a thought.

Re: Regeneration of large amounts of JS on each page load

PostPosted: 07 Sep 2010, 06:35
by TSilva
Sounds interesting... and maybe helps making it faster.

Re: Regeneration of large amounts of JS on each page load

PostPosted: 09 Sep 2010, 08:37
by Jason
Coming next version. (v0.2.03+)

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.