FlexSlider
FlexSlider copied to clipboard
FlexSlider prevents use of back/forward cache
https://web.dev/bfcache/#test-to-ensure-your-pages-are-cacheable
When running on a page with FlexSlider 2.6.3, I get the result Pages that use SpeechSynthesis are not currently eligible for back/forward cache.
Adding a property breakpoint reveals it's this function:
ya=function(){if("undefined"==typeof a)return!1;for(var b in a)try{!xa["$"+b]&&O(a,b)&&null!==a[b]&&"object"==typeof a[b]&&wa(a[b])}catch(c){return!0}return!1}()
Adjusting to the following makes Chrome report the page is back/forward cacheable:
ya=function(){if("undefined"==typeof a)return!1;for(var b in a)try{if(b=="speechSynthesis"){return !0}!xa["$"+b]&&O(a,b)&&null!==a[b]&&"object"==typeof a[b]&&wa(a[b])}catch(c){return!0}return!1}()