{"ScriptPreparationCode":null,"TestCases":[{"Name":"no cache","Code":"(function(){\r\n\tvar d = document.documentElement.classList;\r\n\tif (!(d.contains(\u0022avif-on1\u0022) || d.contains(\u0022avif-off1\u0022))){\r\n\t\tvar avif = \u0022data:image/avif;base64,AAAAFGZ0eXBhdmlmAAAAAG1pZjEAAACgbWV0YQAAAAAAAAAOcGl0bQAAAAAAAQAAAB5pbG9jAAAAAEQAAAEAAQAAAAEAAAC8AAAAGwAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAARWlwcnAAAAAoaXBjbwAAABRpc3BlAAAAAAAAAAQAAAAEAAAADGF2MUOBAAAAAAAAFWlwbWEAAAAAAAAAAQABAgECAAAAI21kYXQSAAoIP8R8hAQ0BUAyDWeeUy0JG\u002BQAACANEkA=\u0022;\r\n\t\tvar img = new Image();\r\n\t\timg.onload = function(){d.add(\u0022avif-on\u0022)};\r\n\t\timg.onerror = function(){d.add(\u0022avif-off\u0022)};\r\n\t\timg.src = avif;\r\n\t}\r\n})();","IsDeferred":false},{"Name":"cache","Code":"(function(){\r\n\tvar d = document.documentElement.classList;\r\n\tif (!(d.contains(\u0022avif-on1\u0022) || d.contains(\u0022avif-off1\u0022))){\r\n\t\t// check localstorage\r\n\t\tvar sto = window.localStorage;\r\n\t\tvar localStorageWebp = sto.getItem(\u0027avifsupp\u0027);\r\n\t\tif (localStorageWebp == \u00271\u0027){\r\n\t\t\td.add(\u0022avif-on\u0022);\r\n\t\t} else if (localStorageWebp == \u00270\u0027){\r\n\t\t\td.add(\u0022avif-off\u0022);\r\n\t\t} else {\r\n\t\t\tvar avif = \u0022data:image/avif;base64,AAAAFGZ0eXBhdmlmAAAAAG1pZjEAAACgbWV0YQAAAAAAAAAOcGl0bQAAAAAAAQAAAB5pbG9jAAAAAEQAAAEAAQAAAAEAAAC8AAAAGwAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAARWlwcnAAAAAoaXBjbwAAABRpc3BlAAAAAAAAAAQAAAAEAAAADGF2MUOBAAAAAAAAFWlwbWEAAAAAAAAAAQABAgECAAAAI21kYXQSAAoIP8R8hAQ0BUAyDWeeUy0JG\u002BQAACANEkA=\u0022;\r\n\t\t\tvar img = new Image();\r\n\t\t\timg.onload = function(){d.add(\u0022avif-on\u0022);sto.setItem(\u0027avifsupp\u0027, \u00271\u0027)};\r\n\t\t\timg.onerror = function(){d.add(\u0022avif-off\u0022);sto.setItem(\u0027avifsupp\u0027, \u00270\u0027)};\r\n\t\t\timg.src = avif;\r\n\t\t}\r\n\t}\r\n})();","IsDeferred":false}]}