add note about htmx

This commit is contained in:
techknowlogick 2024-03-29 08:47:11 +00:00
parent b264dcfdec
commit 059258941e
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
date: 2024-03-28T10:10:00+00:00
authors: "techknowlogick"
title: "So long jQuery, and thanks for all the fish"
tags: ["roadmap"]
tags: ["roadmap", "frontend"]
draft: false
---
@ -12,4 +12,6 @@ The project would like to thank maintainers [yardenshoham](https://gitea.com/yar
We would also like to thank the creators and maintainers of jQuery, Fomantic-UI, and Semantic-UI which we have used for many years, and while the usage of these projects in Gitea will be going away, they have powered Gitea's interface for almost an entire decade.
Switching away from using jQuery will allow Gitea to utilize native browser functionality for javascript without having to have the additional code included to shim functionality for browsers that are no longer supported by the project. Removing Fomantic-UI entirely will save us ~500kB of JS, which will give us massive speed gains.
Switching away from using jQuery will allow Gitea to utilize native browser functionality for javascript without having to have the additional code included to shim functionality for browsers that are no longer supported by the project. Removing Fomantic-UI entirely will save us ~500kB of JS, which will give us massive speed gains.
As a part of our frontend refactoring, another change that will come in 1.22 is the integration of [HTMX](https://htmx.org/) into the user interface to allow for server-side rendering of dynamic HTML elements. This means that we can rely on the server for rendering templates without having the JavaScript frameworks having to keep track of state in addition to the backend.