loading...

re: Do we really need to minify everything? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I would say minifying is well worth the effort. Though I use Lit-Element, which means it's basically impossible to serve my JS without a transpiler...
 

Though I use Lit-Element, which means it's basically impossible to serve my JS without a transpiler anyway (cuz import paths).

Can't you use <script type="module">? Or try snowpack.dev/#litelement. If you need minify, snowpack --optimize is there.

Node probably won't perform very well compared to something like Go

I have some aversion to Golang.

  • All variable types have an initial value, unless you declare a pointer
  • JSON (public) keys start with upper case.
  • Goroutine is there. Otherwise you cannot control multiprocessing.
 

Can't you use <script type="module">? Or try snowpack.dev/#litelement. If you need minify, snowpack --optimize is there.

<script type="module"> works, but needs the absolute URL of the module, and AFAIK lit-element is written with internal files importing each other by relative paths. I hadn't heard of snowpack. It sounds neat. I'm not planning to put work into improving my (already working) tooling in the near future, but I might look into it sometime.

Having an aversion to Golang is fair. I'm not a big fan of it either. But in general, the language the backend is written in isn't the biggest factor in the performance users see (the amount of network traffic is more important), and performance is in turn not the biggest factor in SEO (I'm no SEO expert, but as far as I know it's a pretty small one). So you can really use almost any language you want on the backend.

code of conduct - report abuse