Estoy usando un documento html en mi navegador web firefox y es un archivo en mi máquina y he intentado ver las solicitudes web pero no muestra ninguna. Sé con certeza que tengo Internet aquí hay un código reproducible a continuación
<!DOCTYPE html> <h1>StackOverFlow</h1> <script src="js/jquery.min.js" language="javascript"> $.getJSON('https://jsonip.com/', function(data) { document.writeln("<p> " + JSON.stringify(data, null, 2) + "</p>"); }); </script>Debe tener dos etiquetas <script> : una para jQuery y otra para su código:
<script src="js/jquery.min.js"></script> <script> // Your code here </script>