Showing
1 changed file
with
4 additions
and
18 deletions
@@ -55,48 +55,34 @@ | @@ -55,48 +55,34 @@ | ||
55 | 55 | ||
56 | {{#if devEnv}} | 56 | {{#if devEnv}} |
57 | {{#if localCss }} | 57 | {{#if localCss }} |
58 | - <link rel="preload" as="style" href="//{{devHost}}:{{port}}/common.css?t={{startTime}}"> | ||
59 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/common.css?t={{startTime}}"> | 58 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/common.css?t={{startTime}}"> |
60 | {{/if}} | 59 | {{/if}} |
61 | 60 | ||
62 | {{#if isFeature}} | 61 | {{#if isFeature}} |
63 | - <link rel="preload" as="style" href="//{{devHost}}:{{port}}/feature.css?t={{startTime}}"> | ||
64 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/feature.css?t={{startTime}}"> | 62 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/feature.css?t={{startTime}}"> |
65 | {{else}} | 63 | {{else}} |
66 | {{#ifor localCss vue}} | 64 | {{#ifor localCss vue}} |
67 | - <link rel="preload" as="style" href="//{{devHost}}:{{port}}/{{module}}.{{page}}.css?t={{startTime}}"> | ||
68 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/{{module}}.{{page}}.css?t={{startTime}}"> | 65 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/{{module}}.{{page}}.css?t={{startTime}}"> |
69 | {{^}} | 66 | {{^}} |
70 | - <link rel="preload" as="style" href="//{{devHost}}:{{port}}/index.css?t={{startTime}}"> | ||
71 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/index.css?t={{startTime}}"> | 67 | <link rel="stylesheet" media="all" href="//{{devHost}}:{{port}}/index.css?t={{startTime}}"> |
72 | {{/ifor}} | 68 | {{/ifor}} |
73 | {{/if}} | 69 | {{/if}} |
74 | {{else}} | 70 | {{else}} |
75 | {{#if localCss }} | 71 | {{#if localCss }} |
76 | - <link rel="preload" as="style" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/common.css?t={{startTime}}"> | ||
77 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/common.css?t={{startTime}}"> | 72 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/common.css?t={{startTime}}"> |
78 | {{/if}} | 73 | {{/if}} |
79 | 74 | ||
80 | {{#if isFeature}} | 75 | {{#if isFeature}} |
81 | - <link rel="preload" as="style" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/feature.css?t={{startTime}}"> | ||
82 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/feature.css?t={{startTime}}"> | 76 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/feature.css?t={{startTime}}"> |
83 | {{else}} | 77 | {{else}} |
84 | {{#ifor localCss vue}} | 78 | {{#ifor localCss vue}} |
85 | - <link rel="preload" as="style" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.css?t={{startTime}}"> | ||
86 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.css?t={{startTime}}"> | 79 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.css?t={{startTime}}"> |
87 | {{^}} | 80 | {{^}} |
88 | - <link rel="preload" as="style" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/index.css?t={{startTime}}"> | ||
89 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/index.css?t={{startTime}}"> | 81 | <link rel="stylesheet" media="all" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/index.css?t={{startTime}}"> |
90 | {{/ifor}} | 82 | {{/ifor}} |
91 | {{/if}} | 83 | {{/if}} |
92 | {{/if}} | 84 | {{/if}} |
93 | - {{#if devEnv}} | ||
94 | - <link rel="preload" as="script" href="//{{devHost}}:{{port}}/libs.js?t={{startTime}}"/> | ||
95 | - <link rel="preload" as="script" href="//{{devHost}}:{{port}}/{{module}}.{{page}}.js?t={{startTime}}"/> | ||
96 | - {{else}} | ||
97 | - <link rel="preload" as="script" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/libs.js?t={{startTime}}"/> | ||
98 | - <link rel="preload" as="script" href="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.js?t={{startTime}}"/> | ||
99 | - {{/if}} | 85 | + |
100 | <link rel="apple-touch-icon-precomposed" href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png"> | 86 | <link rel="apple-touch-icon-precomposed" href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png"> |
101 | <link rel="apple-touch-startup-image" href="https://cdn.yoho.cn/h5/forios/startup/startup-orange-6p.png" media="screen and (min-device-width: 1126px) and (max-device-width: 1242px)"> | 87 | <link rel="apple-touch-startup-image" href="https://cdn.yoho.cn/h5/forios/startup/startup-orange-6p.png" media="screen and (min-device-width: 1126px) and (max-device-width: 1242px)"> |
102 | <link rel="apple-touch-startup-image" href="https://cdn.yoho.cn/h5/forios/startup/startup-orange-x.png" media="screen and (min-device-width: 751px) and (max-device-width: 1125px)"> | 88 | <link rel="apple-touch-startup-image" href="https://cdn.yoho.cn/h5/forios/startup/startup-orange-x.png" media="screen and (min-device-width: 751px) and (max-device-width: 1125px)"> |
@@ -125,10 +111,10 @@ | @@ -125,10 +111,10 @@ | ||
125 | <input type="hidden" id="no-download" value="no-download"> | 111 | <input type="hidden" id="no-download" value="no-download"> |
126 | {{/if}} | 112 | {{/if}} |
127 | {{#wechatShare}} | 113 | {{#wechatShare}} |
128 | - <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.3.2.js" crossorigin="anonymous"></script> | 114 | + <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> |
129 | {{/wechatShare}} | 115 | {{/wechatShare}} |
130 | {{#loadJsBefore}} | 116 | {{#loadJsBefore}} |
131 | - <script src="{{src}}" crossorigin="anonymous"></script> | 117 | + <script src="{{src}}"></script> |
132 | {{/loadJsBefore}} | 118 | {{/loadJsBefore}} |
133 | {{#if devEnv}} | 119 | {{#if devEnv}} |
134 | <script> | 120 | <script> |
@@ -146,7 +132,7 @@ | @@ -146,7 +132,7 @@ | ||
146 | <script src="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.js?t={{startTime}}" crossorigin="anonymous"></script> | 132 | <script src="//cdn.yoho.cn/yohobuywap-node/{{version}}/{{module}}.{{page}}.js?t={{startTime}}" crossorigin="anonymous"></script> |
147 | {{/if}} | 133 | {{/if}} |
148 | {{#loadJs}} | 134 | {{#loadJs}} |
149 | - <script src="{{src}}" crossorigin="anonymous"></script> | 135 | + <script src="{{src}}"></script> |
150 | {{/loadJs}} | 136 | {{/loadJs}} |
151 | {{#unless devEnv}} | 137 | {{#unless devEnv}} |
152 | {{> analysis}} | 138 | {{> analysis}} |
-
Please register or login to post a comment