Skip to content

Do you know everything about how browser downloads and displays?

Notifications You must be signed in to change notification settings

feprodev/dom-content-loading-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dom-content-loading-testing

This repo can help you to learn how browser loads scripts and files, builds dom, emits DOMContentLoaded etc.

Installing

npm install

Running with live reload

npm run start:dev

Access credentials

export const adminCredentials: Credentials = {
  login: 'admin',
  password: 'admin'
};

Experiments

index.html

<script src="/resources/a.js?delay=2000&log=helloworld"></script>
<h1 class="a">A</h1>
<link rel="stylesheet" href="/resources/a.css?delay=3000">

Query string parameters:

  • delay (milliseconds) is used to simulate large files or custom network lags, you can change it for any request and see what happens.

  • log parameter will make app server to console.log your message.

Basic access authentication

app.use(auth());

This repo is also a simple example of how basic access authentication works.

About

Do you know everything about how browser downloads and displays?

Resources

Stars

Watchers

Forks