The Device Memory API is a new web platform feature aimed at helping web developers deal with the modern device landscape, which returns how much RAM the device has in gigabytes, rounded down to the nearest power of two.
The Device Memory API gives developers the ability to do two primary things:
Optimised.
Added Description.
Returns the approximate amount of device memory in gigabytes.