0 docs0 MBLazy‑load mode: only the active tab is decoded into memory.
Drop in lots of HTML. This edition avoids crashes by not reading all files into strings.
We keep them as Blob URLs and only load the active tab.
Use Free memory anytime to reclaim RAM.
in this script) ====
async function buildBundleSequential(docs){
const parts = [];
const END_SCRIPT = '<' + '/script>'; // avoid literal in this source
parts.push('\n\n\n\nHTML Binder — Bundle\n');
parts.push('\n');
parts.push('
HTML Binder — Bundle
\n\n\n\n');
// Each doc -> base64 so no accidental inside script text
for(const d of docs){
const name = encodeURIComponent(d.name||'document');
let text; if(d.kind==='file') text = await d.file.text(); else if(d.kind==='blob') text = await d.blob.text(); else text = d.string;
const b64 = btoa(unescape(encodeURIComponent(text)));
parts.push('\n