script-defer.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. {
  2. "title":"defer attribute for external scripts",
  3. "description":"The boolean defer attribute on script elements allows the external JavaScript file to run when the DOM is loaded, without delaying page load first.",
  4. "spec":"https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en/HTML/Element/script#Attributes",
  9. "title":"MDN Web Docs - Script Attributes"
  10. },
  11. {
  12. "url":"https://raw.github.com/phiggins42/has.js/master/detect/script.js#script-defer",
  13. "title":"has.js test"
  14. },
  15. {
  16. "url":"https://www.webplatform.org/docs/html/attributes/defer",
  17. "title":"WebPlatform Docs"
  18. },
  19. {
  20. "url":"http://www.growingwiththeweb.com/2014/02/async-vs-defer-attributes.html",
  21. "title":"async vs defer attributes"
  22. }
  23. ],
  24. "bugs":[
  25. {
  26. "description":"IE < 10 may interleave execution of scripts, [See the discussion](https://github.com/h5bp/lazyweb-requests/issues/42)."
  27. },
  28. {
  29. "description":"Google Chrome does not defer scripts with the `defer` attribute when the page is served as XHTML (`application/xhtml+xml`) - [Chromium Issue #611136](https://bugs.chromium.org/p/chromium/issues/detail?id=611136), [Chromium Issue #874749](https://bugs.chromium.org/p/chromium/issues/detail?id=874749)"
  30. }
  31. ],
  32. "categories":[
  33. "DOM",
  34. "HTML5"
  35. ],
  36. "stats":{
  37. "ie":{
  38. "5.5":"a #1",
  39. "6":"a #1",
  40. "7":"a #1",
  41. "8":"a #1",
  42. "9":"a #1",
  43. "10":"y",
  44. "11":"y"
  45. },
  46. "edge":{
  47. "12":"y",
  48. "13":"y",
  49. "14":"y",
  50. "15":"y",
  51. "16":"y",
  52. "17":"y",
  53. "18":"y"
  54. },
  55. "firefox":{
  56. "2":"n",
  57. "3":"n",
  58. "3.5":"y #2",
  59. "3.6":"y #2",
  60. "4":"y #2",
  61. "5":"y #2",
  62. "6":"y #2",
  63. "7":"y #2",
  64. "8":"y #2",
  65. "9":"y #2",
  66. "10":"y #2",
  67. "11":"y #2",
  68. "12":"y #2",
  69. "13":"y #2",
  70. "14":"y #2",
  71. "15":"y #2",
  72. "16":"y #2",
  73. "17":"y #2",
  74. "18":"y #2",
  75. "19":"y #2",
  76. "20":"y #2",
  77. "21":"y #2",
  78. "22":"y #2",
  79. "23":"y #2",
  80. "24":"y #2",
  81. "25":"y #2",
  82. "26":"y #2",
  83. "27":"y #2",
  84. "28":"y #2",
  85. "29":"y #2",
  86. "30":"y #2",
  87. "31":"y",
  88. "32":"y",
  89. "33":"y",
  90. "34":"y",
  91. "35":"y",
  92. "36":"y",
  93. "37":"y",
  94. "38":"y",
  95. "39":"y",
  96. "40":"y",
  97. "41":"y",
  98. "42":"y",
  99. "43":"y",
  100. "44":"y",
  101. "45":"y",
  102. "46":"y",
  103. "47":"y",
  104. "48":"y",
  105. "49":"y",
  106. "50":"y",
  107. "51":"y",
  108. "52":"y",
  109. "53":"y",
  110. "54":"y",
  111. "55":"y",
  112. "56":"y",
  113. "57":"y",
  114. "58":"y",
  115. "59":"y",
  116. "60":"y",
  117. "61":"y",
  118. "62":"y",
  119. "63":"y",
  120. "64":"y",
  121. "65":"y",
  122. "66":"y"
  123. },
  124. "chrome":{
  125. "4":"n",
  126. "5":"n",
  127. "6":"n",
  128. "7":"n",
  129. "8":"y",
  130. "9":"y",
  131. "10":"y",
  132. "11":"y",
  133. "12":"y",
  134. "13":"y",
  135. "14":"y",
  136. "15":"y",
  137. "16":"y",
  138. "17":"y",
  139. "18":"y",
  140. "19":"y",
  141. "20":"y",
  142. "21":"y",
  143. "22":"y",
  144. "23":"y",
  145. "24":"y",
  146. "25":"y",
  147. "26":"y",
  148. "27":"y",
  149. "28":"y",
  150. "29":"y",
  151. "30":"y",
  152. "31":"y",
  153. "32":"y",
  154. "33":"y",
  155. "34":"y",
  156. "35":"y",
  157. "36":"y",
  158. "37":"y",
  159. "38":"y",
  160. "39":"y",
  161. "40":"y",
  162. "41":"y",
  163. "42":"y",
  164. "43":"y",
  165. "44":"y",
  166. "45":"y",
  167. "46":"y",
  168. "47":"y",
  169. "48":"y",
  170. "49":"y",
  171. "50":"y",
  172. "51":"y",
  173. "52":"y",
  174. "53":"y",
  175. "54":"y",
  176. "55":"y",
  177. "56":"y",
  178. "57":"y",
  179. "58":"y",
  180. "59":"y",
  181. "60":"y",
  182. "61":"y",
  183. "62":"y",
  184. "63":"y",
  185. "64":"y",
  186. "65":"y",
  187. "66":"y",
  188. "67":"y",
  189. "68":"y",
  190. "69":"y",
  191. "70":"y",
  192. "71":"y",
  193. "72":"y",
  194. "73":"y",
  195. "74":"y"
  196. },
  197. "safari":{
  198. "3.1":"n",
  199. "3.2":"n",
  200. "4":"n",
  201. "5":"y",
  202. "5.1":"y",
  203. "6":"y",
  204. "6.1":"y",
  205. "7":"y",
  206. "7.1":"y",
  207. "8":"y",
  208. "9":"y",
  209. "9.1":"y",
  210. "10":"y",
  211. "10.1":"y",
  212. "11":"y",
  213. "11.1":"y",
  214. "12":"y",
  215. "TP":"y"
  216. },
  217. "opera":{
  218. "9":"n",
  219. "9.5-9.6":"n",
  220. "10.0-10.1":"n",
  221. "10.5":"n",
  222. "10.6":"n",
  223. "11":"n",
  224. "11.1":"n",
  225. "11.5":"n",
  226. "11.6":"n",
  227. "12":"n",
  228. "12.1":"n",
  229. "15":"y",
  230. "16":"y",
  231. "17":"y",
  232. "18":"y",
  233. "19":"y",
  234. "20":"y",
  235. "21":"y",
  236. "22":"y",
  237. "23":"y",
  238. "24":"y",
  239. "25":"y",
  240. "26":"y",
  241. "27":"y",
  242. "28":"y",
  243. "29":"y",
  244. "30":"y",
  245. "31":"y",
  246. "32":"y",
  247. "33":"y",
  248. "34":"y",
  249. "35":"y",
  250. "36":"y",
  251. "37":"y",
  252. "38":"y",
  253. "39":"y",
  254. "40":"y",
  255. "41":"y",
  256. "42":"y",
  257. "43":"y",
  258. "44":"y",
  259. "45":"y",
  260. "46":"y",
  261. "47":"y",
  262. "48":"y",
  263. "49":"y",
  264. "50":"y",
  265. "51":"y",
  266. "52":"y",
  267. "53":"y",
  268. "54":"y",
  269. "55":"y",
  270. "56":"y",
  271. "57":"y"
  272. },
  273. "ios_saf":{
  274. "3.2":"n",
  275. "4.0-4.1":"n",
  276. "4.2-4.3":"n",
  277. "5.0-5.1":"y",
  278. "6.0-6.1":"y",
  279. "7.0-7.1":"y",
  280. "8":"y",
  281. "8.1-8.4":"y",
  282. "9.0-9.2":"y",
  283. "9.3":"y",
  284. "10.0-10.2":"y",
  285. "10.3":"y",
  286. "11.0-11.2":"y",
  287. "11.3-11.4":"y",
  288. "12.0-12.1":"y"
  289. },
  290. "op_mini":{
  291. "all":"n"
  292. },
  293. "android":{
  294. "2.1":"n",
  295. "2.2":"n",
  296. "2.3":"n",
  297. "3":"y",
  298. "4":"y",
  299. "4.1":"y",
  300. "4.2-4.3":"y",
  301. "4.4":"y",
  302. "4.4.3-4.4.4":"y",
  303. "67":"y"
  304. },
  305. "bb":{
  306. "7":"y",
  307. "10":"y"
  308. },
  309. "op_mob":{
  310. "10":"n",
  311. "11":"n",
  312. "11.1":"n",
  313. "11.5":"n",
  314. "12":"n",
  315. "12.1":"n",
  316. "46":"y"
  317. },
  318. "and_chr":{
  319. "70":"y"
  320. },
  321. "and_ff":{
  322. "63":"y"
  323. },
  324. "ie_mob":{
  325. "10":"y",
  326. "11":"y"
  327. },
  328. "and_uc":{
  329. "11.8":"y"
  330. },
  331. "samsung":{
  332. "4":"y",
  333. "5":"y",
  334. "6.2":"y",
  335. "7.2":"y"
  336. },
  337. "and_qq":{
  338. "1.2":"y"
  339. },
  340. "baidu":{
  341. "7.12":"y"
  342. }
  343. },
  344. "notes":"",
  345. "notes_by_num":{
  346. "1":"Partial support in older IE refers to a buggy implementation (see issue).",
  347. "2":"Deferred scripts may run after DOMContentLoaded - https://bugzilla.mozilla.org/show_bug.cgi?id=688580"
  348. },
  349. "usage_perc_y":93.37,
  350. "usage_perc_a":0.33,
  351. "ucprefix":false,
  352. "parent":"",
  353. "keywords":"",
  354. "ie_id":"",
  355. "chrome_id":"",
  356. "firefox_id":"",
  357. "webkit_id":"",
  358. "shown":true
  359. }