What's the right method to set a new prerender or prefetch in HTML?

后端 未结 3 1841
礼貌的吻别
礼貌的吻别 2021-02-08 09:25


An HTML Document



        
3条回答
  •  孤城傲影
    2021-02-08 10:14

    1) You don't need to use both prefetch and prerender links, you only need prerender. A prerender link will load everything prefetch does, and more.

    2) To answer your question, use method 2 and insert another prerender link with javascript. Something link this:

    
    

    Or if you use jQuery:

    $("head").append('');
    

提交回复
热议问题