comics
Version:
1 lines • 1.69 kB
JSON
{"ast":null,"code":"\"use strict\";\n\nexports.__esModule = true;\nexports.displayContent = displayContent;\n\nfunction displayContent(callback) {\n // This is the fallback helper that removes Next.js' no-FOUC styles when\n // CSS mode is enabled. This only really activates if you haven't created\n // _any_ styles in your application yet.\n ;\n (window.requestAnimationFrame || setTimeout)(function () {\n for (var x = document.querySelectorAll('[data-next-hide-fouc]'), i = x.length; i--;) {\n x[i].parentNode.removeChild(x[i]);\n }\n\n if (callback) {\n callback();\n }\n });\n}","map":{"version":3,"sources":["../../../client/dev/fouc.js"],"names":["window","x","document","i","callback"],"mappings":";;;;;AAAO,SAAA,cAAA,CAAA,QAAA,EAAkC;AACvC;AACA;AACA;AACA;AAAC,GAACA,MAAM,CAANA,qBAAAA,IAAD,UAAA,EAA6C,YAAY;AACxD,SACE,IAAIC,CAAC,GAAGC,QAAQ,CAARA,gBAAAA,CAAR,uBAAQA,CAAR,EAA4DC,CAAC,GAAGF,CAAC,CADnE,MAAA,EAEEE,CAFF,EAAA,GAIE;AACAF,MAAAA,CAAC,CAADA,CAAC,CAADA,CAAAA,UAAAA,CAAAA,WAAAA,CAA4BA,CAAC,CAA7BA,CAA6B,CAA7BA;AAEF;;AAAA,QAAA,QAAA,EAAc;AACZG,MAAAA,QAAQ;AAEX;AAXA,GAAA;AAYF","sourcesContent":["export function displayContent(callback) {\n // This is the fallback helper that removes Next.js' no-FOUC styles when\n // CSS mode is enabled. This only really activates if you haven't created\n // _any_ styles in your application yet.\n ;(window.requestAnimationFrame || setTimeout)(function () {\n for (\n var x = document.querySelectorAll('[data-next-hide-fouc]'), i = x.length;\n i--;\n\n ) {\n x[i].parentNode.removeChild(x[i])\n }\n if (callback) {\n callback()\n }\n })\n}\n"]},"metadata":{},"sourceType":"script"}