script-defer.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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. "67":"y",
  124. "68":"y"
  125. },
  126. "chrome":{
  127. "4":"n",
  128. "5":"n",
  129. "6":"n",
  130. "7":"n",
  131. "8":"y",
  132. "9":"y",
  133. "10":"y",
  134. "11":"y",
  135. "12":"y",
  136. "13":"y",
  137. "14":"y",
  138. "15":"y",
  139. "16":"y",
  140. "17":"y",
  141. "18":"y",
  142. "19":"y",
  143. "20":"y",
  144. "21":"y",
  145. "22":"y",
  146. "23":"y",
  147. "24":"y",
  148. "25":"y",
  149. "26":"y",
  150. "27":"y",
  151. "28":"y",
  152. "29":"y",
  153. "30":"y",
  154. "31":"y",
  155. "32":"y",
  156. "33":"y",
  157. "34":"y",
  158. "35":"y",
  159. "36":"y",
  160. "37":"y",
  161. "38":"y",
  162. "39":"y",
  163. "40":"y",
  164. "41":"y",
  165. "42":"y",
  166. "43":"y",
  167. "44":"y",
  168. "45":"y",
  169. "46":"y",
  170. "47":"y",
  171. "48":"y",
  172. "49":"y",
  173. "50":"y",
  174. "51":"y",
  175. "52":"y",
  176. "53":"y",
  177. "54":"y",
  178. "55":"y",
  179. "56":"y",
  180. "57":"y",
  181. "58":"y",
  182. "59":"y",
  183. "60":"y",
  184. "61":"y",
  185. "62":"y",
  186. "63":"y",
  187. "64":"y",
  188. "65":"y",
  189. "66":"y",
  190. "67":"y",
  191. "68":"y",
  192. "69":"y",
  193. "70":"y",
  194. "71":"y",
  195. "72":"y",
  196. "73":"y",
  197. "74":"y",
  198. "75":"y",
  199. "76":"y"
  200. },
  201. "safari":{
  202. "3.1":"n",
  203. "3.2":"n",
  204. "4":"n",
  205. "5":"y",
  206. "5.1":"y",
  207. "6":"y",
  208. "6.1":"y",
  209. "7":"y",
  210. "7.1":"y",
  211. "8":"y",
  212. "9":"y",
  213. "9.1":"y",
  214. "10":"y",
  215. "10.1":"y",
  216. "11":"y",
  217. "11.1":"y",
  218. "12":"y",
  219. "12.1":"y",
  220. "TP":"y"
  221. },
  222. "opera":{
  223. "9":"n",
  224. "9.5-9.6":"n",
  225. "10.0-10.1":"n",
  226. "10.5":"n",
  227. "10.6":"n",
  228. "11":"n",
  229. "11.1":"n",
  230. "11.5":"n",
  231. "11.6":"n",
  232. "12":"n",
  233. "12.1":"n",
  234. "15":"y",
  235. "16":"y",
  236. "17":"y",
  237. "18":"y",
  238. "19":"y",
  239. "20":"y",
  240. "21":"y",
  241. "22":"y",
  242. "23":"y",
  243. "24":"y",
  244. "25":"y",
  245. "26":"y",
  246. "27":"y",
  247. "28":"y",
  248. "29":"y",
  249. "30":"y",
  250. "31":"y",
  251. "32":"y",
  252. "33":"y",
  253. "34":"y",
  254. "35":"y",
  255. "36":"y",
  256. "37":"y",
  257. "38":"y",
  258. "39":"y",
  259. "40":"y",
  260. "41":"y",
  261. "42":"y",
  262. "43":"y",
  263. "44":"y",
  264. "45":"y",
  265. "46":"y",
  266. "47":"y",
  267. "48":"y",
  268. "49":"y",
  269. "50":"y",
  270. "51":"y",
  271. "52":"y",
  272. "53":"y",
  273. "54":"y",
  274. "55":"y",
  275. "56":"y",
  276. "57":"y",
  277. "58":"y"
  278. },
  279. "ios_saf":{
  280. "3.2":"n",
  281. "4.0-4.1":"n",
  282. "4.2-4.3":"n",
  283. "5.0-5.1":"y",
  284. "6.0-6.1":"y",
  285. "7.0-7.1":"y",
  286. "8":"y",
  287. "8.1-8.4":"y",
  288. "9.0-9.2":"y",
  289. "9.3":"y",
  290. "10.0-10.2":"y",
  291. "10.3":"y",
  292. "11.0-11.2":"y",
  293. "11.3-11.4":"y",
  294. "12.0-12.1":"y",
  295. "12.2":"y"
  296. },
  297. "op_mini":{
  298. "all":"n"
  299. },
  300. "android":{
  301. "2.1":"n",
  302. "2.2":"n",
  303. "2.3":"n",
  304. "3":"y",
  305. "4":"y",
  306. "4.1":"y",
  307. "4.2-4.3":"y",
  308. "4.4":"y",
  309. "4.4.3-4.4.4":"y",
  310. "67":"y"
  311. },
  312. "bb":{
  313. "7":"y",
  314. "10":"y"
  315. },
  316. "op_mob":{
  317. "10":"n",
  318. "11":"n",
  319. "11.1":"n",
  320. "11.5":"n",
  321. "12":"n",
  322. "12.1":"n",
  323. "46":"y"
  324. },
  325. "and_chr":{
  326. "71":"y"
  327. },
  328. "and_ff":{
  329. "64":"y"
  330. },
  331. "ie_mob":{
  332. "10":"y",
  333. "11":"y"
  334. },
  335. "and_uc":{
  336. "11.8":"y"
  337. },
  338. "samsung":{
  339. "4":"y",
  340. "5.0-5.4":"y",
  341. "6.2-6.4":"y",
  342. "7.2-7.4":"y",
  343. "8.2":"y"
  344. },
  345. "and_qq":{
  346. "1.2":"y"
  347. },
  348. "baidu":{
  349. "7.12":"y"
  350. }
  351. },
  352. "notes":"",
  353. "notes_by_num":{
  354. "1":"Partial support in older IE refers to a buggy implementation (see issue).",
  355. "2":"Deferred scripts may run after DOMContentLoaded - https://bugzilla.mozilla.org/show_bug.cgi?id=688580"
  356. },
  357. "usage_perc_y":96.2,
  358. "usage_perc_a":0.36,
  359. "ucprefix":false,
  360. "parent":"",
  361. "keywords":"",
  362. "ie_id":"",
  363. "chrome_id":"",
  364. "firefox_id":"",
  365. "webkit_id":"",
  366. "shown":true
  367. }