Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Compressing js files  (Read 2257 times)

0 Members and 1 Guest are viewing this topic.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Compressing js files
« on: November 11, 2010, 08:45:11 pm »

Just wondering if compressing (before releasing the next public version of CPG, so that the average user will already have optimized js files) the biggest javascript files would worth anything.
I managed to save about 60% by compressing the biggest 9 files (jquery among other) in /js folder, that means a little bit more than 100kB.
Would Google spiders or an user with a slower connection be positively affected?

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Compressing js files
« Reply #1 on: November 12, 2010, 09:57:30 am »

Try that plugin.
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Compressing js files
« Reply #2 on: November 12, 2010, 11:51:37 am »

That's not what I was exactly talking about.
As you can see, the plugin is in an early development stage and I don't want to try it at the moment, while I already manually compressed the js files, and was trying to understand (suggest) if it was a good thing to do it in the development stage (read: you and the other developers) just after the coding has finished, so that every user who will visit a coppermine gallery, will save some bandwith.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Compressing js files
« Reply #3 on: November 12, 2010, 12:01:27 pm »

I don't know the different compression methods, so I cannot decide that. Methods that makes the js file unreadable are out of the question, at least for the development branch. But as Coppermine is a picture gallery, the size of the js files shouldn't be that bad.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Compressing js files
« Reply #4 on: November 12, 2010, 05:56:17 pm »

If you need compression badly best is to do that with an apache module, e.g. mod_deflate http://httpd.apache.org/docs/2.0/mod/mod_deflate.html
Or google for mod_gzip
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.