NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: CaseyR on June 13, 2019, 02:06:01 PM

Title: Deployment - theme.css.gz and standalone css files
Post by: CaseyR 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.
Title: Re: Deployment - theme.css.gz and standalone css files
Post by: Bruce 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

Title: Re: Deployment - theme.css.gz and standalone css files
Post by: CaseyR on June 21, 2019, 04:43:57 PM
Thanks for the clarification.