Download the loading stylesheet.

<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> </head> <body> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script> </body> </html> 

On the chrome network, I see bootstrap.min.css loading twice. Can someone explain to me why? v. 57 to win 8.1 chrome network

+5
source share
2 answers

Found some information about the problem here .

The integrity attribute for link elements has not yet been implemented, and there is a problem with open specifications. This means that the presence of any integrity metadata currently discards preloaded resources. In the wild, this can also lead to duplicate requests when you need to compromise between security and performance.

+8
source

I do not understand that this is due to integrity tags. With or without them, I see several bootstrap.min.css downloads in the Firefox Web Dev Network panel.

This seems to be due to the fact that Bootstrap JS includes a separate call. Although for performance reasons, it’s best to maintain a direct CSS load.

0
source

Source: https://habr.com/ru/post/1265966/


All Articles