Using local storage to cache styles for faster load times.