workflowproducts / envelope

Publish web apps based on your PostgreSQL database fast!
https://workflowproducts.com/envelope.html
Apache License 2.0
53 stars 2 forks source link

minified js and css #162

Closed justintocci closed 1 year ago

justintocci commented 1 year ago

from cross

We need a function that takes a page and returns a minified js and css file based off of elements used in that page.

That way at the end of development or changes to a page, we can run the function and have as small of a dependency list as possible, which helps users with poor internet.

justintocci commented 1 year ago

it seems to me that we can cut the size of the javascript payload by a lot if we just remove all the polyfills. they shouldn't be needed anymore.

justintocci commented 1 year ago

We've removed several shims and all the really old x-tags code. This shrank the size of the full payload by a lot. We're probably only broken browsers on devices older than eight years or so. If you aren't happy with the improvement open a new issue.

Also, I don't know that I even liked the idea. Having people load custom files means they need to cache a lot more files overall. I think if this is a real problem, then the solution will look like splitting up the javascript for everyone all the time. This would give us the ability to have smaller payloads for screens that don't need the full boat. But this would require more work than i think we need to do right now. keep me posted if it is a problem you think we need to address.