简体   繁体   中英

how cached external javascript files helps HTML page to load fast?

I am little confused on how cached external javascript file linked to HTML page helps HTML page to load fast? Shouldn't the internal javascript make the HTML file load faster than external javascript file?

#solved:

cached files will load fast as they are more closer to cpu as they are in the SRAM while internal HTML files are in the DRAM which is slower than SRAM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM