Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
¿Qué puede causar que el evento de 'carga' del navegador no se active?

Tengo un error en el que el evento de 'carga' de javascript no se activa. Esto solo sucede cuando navego al código que pasa por php; sin embargo, cuando navego a un archivo html, funciona bien.

El evento 'cargar' en el navegador SÍ se activa

prueba.html

 <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script> // Show all events that have fired Object.keys(window).forEach(key => { if (/^on/.test(key)) { window.addEventListener(key.slice(2), event => { console.log(event); }); } }); </script> </head> <body> </body> </html>

El evento 'cargar' en el navegador NUNCA se activa

aplicación.blade.php

 <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>{{ config('app.name', 'Laravel') }}</title> {{-- Fonts --}} <link rel="stylesheet" href="https://rsms.me/inter/inter.css"> {{-- Styles --}} <link href="{{ mix('/css/app.css') }}" rel="stylesheet" /> {{-- Scripts --}} @routes <script src="{{ mix('/js/app.js') }}" defer></script> <script> // Show all events that have fired Object.keys(window).forEach(key => { if (/^on/.test(key)) { window.addEventListener(key.slice(2), event => { console.log(event); }); } }); </script> </head> <body> @inertia </body> </html>

Uso laravel sail en WSL2.

Cosas que he probado:

  • apagándolo y encendiéndolo de nuevo
  • prueba en el borde, todavía ocurre
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esto terminó siendo un conflicto con una dirección IPV6.

Enumeré los procesos que se ejecutan en IPv4 e IPv6 y descubrí que ambos protocolos intentaban usar localhost en el puerto 80.

Ejecuté el comando de eliminación en el proceso de IPv6 y el navegador comenzó a comportarse correctamente.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!