NetTalk Central

Author Topic: Deployment - theme.css.gz and standalone css files  (Read 26 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 360
    • View Profile
    • Email
Deployment - theme.css.gz and standalone css files
« on: June 13, 2019, 02:06:01 PM »
The GZip.bat includes scripts and css files based on options selected in the WebServer app, and includes some that look to be common to all server applications.    But not all the common files,  the error.css and the browser specific css's, for example, are excluded.

I was trying to keep all the css in the theme.css.gz and all the scripts in the all.js.gz to speed performance (sure does), and reduce intermittent browser hang (seems to).  Wondering why the excluded common css are not in gzipped with the rest?  Or are they not common after all?

Which css excluded from the gz need to be included for deployment? Simply copying all the css from the development app's style folder to the client's style folder will have the same code in two places.

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9633
    • View Profile
Re: Deployment - theme.css.gz and standalone css files
« Reply #1 on: June 18, 2019, 11:10:56 PM »
Hi Casey,

>> Wondering why the excluded common css are not in gzipped with the rest?  Or are they not common after all?

error.css is only sent with errors, is very small, and is the only css sent with an error. Sending all.css with an error would be massive overkill given that it includes all the css several KB worth, instead of just the few bytes with error.css.

the browser specific ones are not included, because, um, they are browser specific, so only sent depending on the browser the user is using. (To be fair we're approaching a time when these can go away as well - but that's some years away still.)

Cheers
Bruce