fix: Blob URL加载缓存页面——避免DOM操作导致双重渲染

This commit is contained in:
LukeMackin
2026-07-21 19:02:09 +08:00
parent bf72ea937f
commit bfd7bee2ae

View File

@@ -1,9 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script> <html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script>
(function(){ (function(){
var b=localStorage.getItem('gca_html'),v=localStorage.getItem('gca_ver'); var b=localStorage.getItem('gca_html');
if(b&&v){ if(b){
document.documentElement.innerHTML=b;return var blob=new Blob([b],{type:'text/html'});
location.replace(URL.createObjectURL(blob));
return
} }
})(); })();
</script> </script>