loud-links icon indicating copy to clipboard operation
loud-links copied to clipboard

feature: cache sounds

Open marcobiedermann opened this issue 9 years ago • 4 comments

I would suggest caching the sound effect after the first request. This will prevent the browser from loading the file more than one time.

loud-links-request

As you can see, I hovered the logo and the sound file got downloaded on every event.

marcobiedermann avatar Feb 01 '16 22:02 marcobiedermann

hmmmm, how do you cache sounds?

MahdiF avatar Feb 02 '16 08:02 MahdiF

I'm not quite sure this will work but my suggestion would be something like this:

onhover (look in array for filename)
  if (not exists)
    load sound
    add filename to array
    play sound
  otherwise
    play sound

marcobiedermann avatar Feb 02 '16 10:02 marcobiedermann

This would be solved by the method I mention under #2

shshaw avatar Feb 08 '16 02:02 shshaw

+1

Oxicode avatar Feb 11 '16 20:02 Oxicode