You cannot force anything to be removed from browsers' active memory using Javascript / jQuery, however, as other users said when using .remove (), deleted items are then garbage collected.
I think it is unlikely that these images will cause the slowdown that you see, and rather, a problem with some of your other scripts.
I assume that you are slowing down your value, such as page lag, indicating memory / processor usage.
If the problem is the actual page load time, the problem lies elsewhere and has nothing to do with the RAM that was taken, but is most likely related to loading the images if it is possible to delete unnecessary images on the server side.
source share