javascript - How to load css and js on demand without webpack
我想大声告诉你
我想大声告诉你 2017-06-05 11:07:38
0
2
617


Now the header resources are extracted using the php template, but the css js resources of each page are different. If all resources are written in the PHP template, it means that each page may load resources that it does not need. How to load different pages on demand? (provided that tools such as webpack are not used)

我想大声告诉你
我想大声告诉你

reply all(2)
漂亮男人

requireJS

習慣沉默

This is a multi-page application. The shared JS and CSS references are written in the template, and each page references them separately

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template