HTML import not deduping

会有一股神秘感。 提交于 2019-12-04 20:23:31

If I understand this correctly, you are having script file load multiple times because they are called in multiple elements. Please correct me if this is not right.

I do see that the HTML file is what is being parsed twice but the script inside it is actually pulled from cache (on the second reference). If you don't want the HTML file to be parsed again, you'll need to setup caching for the HTML at the server or Service Worker level.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!