Let firefox use less RAM when minimized:
When firefox is minimized, it doesn't give back unused RAM to the OS. You can fix it by entering about:config.
Right-click in the list, and choose New > Boolean. Name the new value config.trim_on_minimize. And then select True. Now restart Firefox. The RAM usage when minimized is now about 70% less.