* [Cuirass] JavaScript work
@ 2024-02-17 20:55 Ricardo Wurmus
2024-02-18 9:23 ` Janneke Nieuwenhuizen
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2024-02-17 20:55 UTC (permalink / raw)
To: Guix-devel; +Cc: Mathieu Othacehe, Ludovic Courtès
Hi,
I noticed that Cuirass bundles minified JavaScript. I’ve started a new
branch that replaces the minified JavaScript with readable source code
and minifies the files as part of the build.
I also tried to remove the need for jQuery, at least in our own
JavaScript code. (Datatables.js still uses jQuery.)
Eventually, I’d like to remove Bootstrap (both CSS and JS) all together
and switch to Pico.css for conventional default styles without the need
for bootstrap classes everywhere. I’d like to remove JS for thing that
HTML+CSS can do just fine.
(Pico is also used in mumi.)
What do you think?
The branch is here:
https://git.savannah.gnu.org/cgit/guix/guix-cuirass.git/log/?h=wip-js%2bcss
--
Ricardo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cuirass] JavaScript work
2024-02-17 20:55 [Cuirass] JavaScript work Ricardo Wurmus
@ 2024-02-18 9:23 ` Janneke Nieuwenhuizen
2024-02-25 9:58 ` Ricardo Wurmus
2024-02-21 18:35 ` Maxim Cournoyer
2024-02-24 16:42 ` Ludovic Courtès
2 siblings, 1 reply; 5+ messages in thread
From: Janneke Nieuwenhuizen @ 2024-02-18 9:23 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Guix-devel, Mathieu Othacehe, Ludovic Courtès
Ricardo Wurmus writes:
> I noticed that Cuirass bundles minified JavaScript. I’ve started a new
> branch that replaces the minified JavaScript with readable source code
> and minifies the files as part of the build.
Yay for that. I'm wondering though what the net gain of minification is
with current bandwiths. On the few sites that I use javascript on I just
ship the preferred readable code.
Janneke
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cuirass] JavaScript work
2024-02-18 9:23 ` Janneke Nieuwenhuizen
@ 2024-02-25 9:58 ` Ricardo Wurmus
0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2024-02-25 9:58 UTC (permalink / raw)
To: Janneke Nieuwenhuizen; +Cc: Guix-devel, Mathieu Othacehe, Ludovic Courtès
Janneke Nieuwenhuizen <janneke@gnu.org> writes:
> I'm wondering though what the net gain of minification is
> with current bandwiths. On the few sites that I use javascript on I just
> ship the preferred readable code.
JavaScript libraries can weigh several megabytes unminified. With
minification applied to the concatenation of all JavaScript code we can
reduce the number of requests that need to be made and the weight of the
request.
[I remember that accessing anything JavaScript heavy (by byte-count) was
no fun in China.]
But minification may not be worth it anyway once we get rid of all
unnecessary JavaScript like jQuery, bootstrap, and DT.
--
Ricardo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cuirass] JavaScript work
2024-02-17 20:55 [Cuirass] JavaScript work Ricardo Wurmus
2024-02-18 9:23 ` Janneke Nieuwenhuizen
@ 2024-02-21 18:35 ` Maxim Cournoyer
2024-02-24 16:42 ` Ludovic Courtès
2 siblings, 0 replies; 5+ messages in thread
From: Maxim Cournoyer @ 2024-02-21 18:35 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Guix-devel, Mathieu Othacehe, Ludovic Courtès
Hi,
Ricardo Wurmus <rekado@elephly.net> writes:
> Hi,
>
> I noticed that Cuirass bundles minified JavaScript. I’ve started a new
> branch that replaces the minified JavaScript with readable source code
> and minifies the files as part of the build.
>
> I also tried to remove the need for jQuery, at least in our own
> JavaScript code. (Datatables.js still uses jQuery.)
>
> Eventually, I’d like to remove Bootstrap (both CSS and JS) all together
> and switch to Pico.css for conventional default styles without the need
> for bootstrap classes everywhere. I’d like to remove JS for thing that
> HTML+CSS can do just fine.
>
> (Pico is also used in mumi.)
>
> What do you think?
Sounds good to me. Like Janneke, I also think we can do without JS
obfuscation (minification).
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Cuirass] JavaScript work
2024-02-17 20:55 [Cuirass] JavaScript work Ricardo Wurmus
2024-02-18 9:23 ` Janneke Nieuwenhuizen
2024-02-21 18:35 ` Maxim Cournoyer
@ 2024-02-24 16:42 ` Ludovic Courtès
2 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2024-02-24 16:42 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Guix-devel, Mathieu Othacehe
Hi,
Ricardo Wurmus <rekado@elephly.net> skribis:
> I noticed that Cuirass bundles minified JavaScript. I’ve started a new
> branch that replaces the minified JavaScript with readable source code
> and minifies the files as part of the build.
>
> I also tried to remove the need for jQuery, at least in our own
> JavaScript code. (Datatables.js still uses jQuery.)
>
> Eventually, I’d like to remove Bootstrap (both CSS and JS) all together
> and switch to Pico.css for conventional default styles without the need
> for bootstrap classes everywhere. I’d like to remove JS for thing that
> HTML+CSS can do just fine.
>
> (Pico is also used in mumi.)
>
> What do you think?
I’m all for it. Thanks a lot for working on it!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-25 10:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-17 20:55 [Cuirass] JavaScript work Ricardo Wurmus
2024-02-18 9:23 ` Janneke Nieuwenhuizen
2024-02-25 9:58 ` Ricardo Wurmus
2024-02-21 18:35 ` Maxim Cournoyer
2024-02-24 16:42 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.