Js import () asynchronous principle? What is the principle of lazy loading?

clipboard.png

what is the principle of lazy loading?

Mar.20,2021

import () is a syntactic sugar, and the return value is a Promise object, which means that this requires asynchronous processing, and you can get the real module in .then (). Based on this, your screenshot actually looks like this:

  

Asynchronous generally creates script tags dynamically to load the corresponding js

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b898-2ba93.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b898-2ba93.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?