Ticket #31 (assigned enhancement)

Opened 4 years ago

Last modified 3 years ago

Compress CSS and JS generated from api_resources

Reported by: todd Owned by: william
Priority: minor Milestone:
Component: Core Features Version: 0.x
Keywords: Cc:

Description (last modified by william) (diff)

Hook the GenerateResources? call in setup.py to emit "compressed" JS and CSS rather than the original verbatim. This should reduce our install size, and how much we send to the browser, too.

UPDATE: Instead of compressing all files, we will only compress files with an indicator, such as the first line being a comment "tcms compress." This will allow files to be compressed as needed and for any "externa" resource files (prototype, tinyMCE, etc.) to use their pre-built compressed versions.

Change History

in reply to: ↑ description   Changed 4 years ago by todd

Replying to todd:

The code is done and in place, but we need to test that the compression process hasn't borked either our CSS or our JS. This will require some rigorous testing.

Hook the GenerateResources? call in setup.py to emit "compressed" JS and CSS rather than the original verbatim. This should reduce our install size, and how much we send to the browser, too.

  Changed 4 years ago by todd

  • status changed from new to assigned

  Changed 4 years ago by todd

  • owner changed from todd to william
  • status changed from assigned to new

  Changed 4 years ago by william

  • status changed from new to assigned

  Changed 4 years ago by william

  • description modified (diff)
  • milestone changed from 0.6 - "Kookie Kalendar" to 0.6.1

Instead of compressing all files, we will only compress files with an indicator, such as the first line being a comment "tcms compress." This will allow files to be compressed as needed and for any "externa" resource files (prototype, tinyMCE, etc.) to use their pre-built compressed versions.

  Changed 4 years ago by william

  • milestone changed from 0.5.21 to 0.5.22

  Changed 4 years ago by william

  • milestone changed from 0.5.22 to 1.0 - "Holy Crap, it's an application platform"

  Changed 3 years ago by anonymous

  • milestone 1.0 - "Holy Crap, it's an application platform" deleted

Milestone 1.0 - "Holy Crap, it's an application platform" deleted

Note: See TracTickets for help on using tickets.