Should js and css be removed when element is removed?

I noticed that google maps js and swiper css/js where in my header even though it had deleted those elements. Is that normal?

I will have to go through all the links now to see what i dont need. i have experimented with many elements/components charts, etc which i have long sicnce removed but the code is still there…

If the js includes are added automatically on save, then you have these component added on your page, and not removed.

If you remove the google maps from your page, then you can remove its includes and they won’t be added on save.