i have this code but doesn't work

index.html

```
<html>
<body>
 <section>

 </section>
</body>
</html>

```

welcome.html

```
<div>Welcome, please login</div>
<div id='login'> </div>

```

file.js

```
$('section').load('welcome.html');                          
$('#login').load('login.html');

```

but if i put an alert like this, and then close the alert it works

```
$('section').load('welcome.html');

alert("!!");                        
$('#login').load('login.html');

```

what can i do? i don't want that alert, thank you for the your time