Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 7d69af4

Browse files
Sam HSam H
authored andcommitted
refactor: add a comment explaining the webp detecting method
1 parent 49ebdee commit 7d69af4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/browser.services.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export class BrowserService {
2+
// Right now, this method can only check for lossy webp capabilities. The rest of the code for serving the proper .webp images is scattered throughout the site and is based on a boolean "allowWebp". Some refactoring later could potentially support lossless, alpha, and animation. At the time of this writing, 01-08-19, the only .webp images in the website assets are lossy.
23
check_webp() {
34
const kTestImages = {
45
lossy: 'UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA',

0 commit comments

Comments
 (0)