CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • reducing page load times - commonwidgets.js is 370k
Pages: [1]

Author Topic: reducing page load times - commonwidgets.js is 370k  (Read 1629 times)

scotthopkins

  • Guest
reducing page load times - commonwidgets.js is 370k
November 30, 2008, 02:40:41 am
Hi all,

i'm only a few days into CiviCRM and I had a quick look around on the forum and I am unsure where to post this question... so admins please feel free to move it.

I was looking at the stats for page size / load times for the Contribute component on joomla and I noticed that there is a javascript file commonwidgets.js which is 370.1K - and this is already minified.

has anyone in the past done any work to further reduce this in the interests of faster page load times... ?

i am feeling i would have to remove dojo modules that are not used for the contribute module... i could isolate the full commonwidgets.js to the admin back end of course.  would make it more work for me to upgrade in the future i imagine.

anyways just thinking out loud really.

thanks Scott

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: reducing page load times - commonwidgets.js is 370k
November 30, 2008, 09:49:05 am
 commonwidgets.js, is required for all ajax (dojo) widgets. It only contains required widgets that are used in CiviCRM. So if you remove it lot of ajax related stuff might break.

We also use ajax stuff for Contribution pages (frontend), for On Behalf Contribution feature.

Kurund
« Last Edit: November 30, 2008, 09:51:10 am by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

scotthopkins

  • Guest
Re: reducing page load times - commonwidgets.js is 370k
November 30, 2008, 12:11:06 pm
Hi Kurund,

thanks for the reply... i was more thinking to remove functions from within commonwidgets.js that are not needed by the contribute page. as the non-minified source is included in the distribution.

i just know that when a user loads that page they are going to wait a while even if they are on a adsl connection

thanks scott

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: reducing page load times - commonwidgets.js is 370k
December 01, 2008, 04:33:34 am
Scott,

If you visit http://forum.civicrm.org/index.php/topic,5259.msg23184.html#msg23184 you'll see my workaround to speed up loading. Note that you don't need to edit the CiviCRM template itself - you can add your own version of the template into the custom template directory - Civi loads templates from the custom template directory in preference to the main template directory.

Ken

scotthopkins

  • Guest
Re: reducing page load times - commonwidgets.js is 370k
December 01, 2008, 11:43:40 am

Thanks Ken !!!

this is exactly what i needed... I just wasn't sure if the commonwidgets.js was needed at all for what i was doing... and it's not.

Awesomeness  ;D

thanks again
scott

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • reducing page load times - commonwidgets.js is 370k

This forum was archived on 2017-11-26.