$w.onReady(function () { // Essential scripts are loaded here console.log('Page is ready'); // Defer non-essential scripts setTimeout(() => { console.log('Loading non-essential scripts'); // Example of a non-essential script // loadNonEssentialScript(); }, 3000); // Delay by 3 seconds // Function to load non-essential scripts function loadNonEssentialScript() { // Code to load non-essential scripts console.log('Non-essential script loaded'); } }); import { ok, serverError } from 'wix-http-functions'; import CleanCSS from 'clean-css'; import UglifyJS from 'uglify-js'; export function get_minified(request) { try { const cssContent = `/* Your CSS content here */`; const jsContent = `// Your JS content here`; const minifiedCSS = new CleanCSS().minify(cssContent).styles; const minifiedJS = UglifyJS.minify(jsContent).code; return ok({ headers: { 'Content-Type': 'application/json' }, body: { css: minifiedCSS, js: minifiedJS } }); } catch (error) { return serverError({ body: `Error minifying files: ${error.message}` }); } }
top of page
2025 PORTAMENUS FONDO.png

¿NECESITAS AYUDA?

CONTÁCTANOS

Contacta con un asesor

Tipo de negocio

Esto nos ayudará a personalizar tus productos de mejor manera garantizando la calidad en impresión o decorados.

¿Tienes alguna duda? Visita nuestra guía para enviar diseños

Información de contacto

Av. Palma Real S/N Tablaje Catastral 11836, x 19 y 21 Colonia Ciudad Industrial, Mérida, Yucatán, México. C.P. 97288.

+52 999 946 3122
+52 999 946 2060

  • Facebook
  • X
  • Instagram
  • LinkedIn
  • Pinterest
  • TikTok
bottom of page