{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/20334","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/20334/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/20334/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/20334/events","html_url":"https://github.com/twbs/bootstrap/issues/20334","id":166704023,"number":20334,"title":"Consider loading CSS files asynchronously ","user":{"login":"TheTannerRyan","id":10674240,"avatar_url":"https://avatars.githubusercontent.com/u/10674240?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTannerRyan","html_url":"https://github.com/TheTannerRyan","followers_url":"https://api.github.com/users/TheTannerRyan/followers","following_url":"https://api.github.com/users/TheTannerRyan/following{/other_user}","gists_url":"https://api.github.com/users/TheTannerRyan/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTannerRyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTannerRyan/subscriptions","organizations_url":"https://api.github.com/users/TheTannerRyan/orgs","repos_url":"https://api.github.com/users/TheTannerRyan/repos","events_url":"https://api.github.com/users/TheTannerRyan/events{/privacy}","received_events_url":"https://api.github.com/users/TheTannerRyan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twbs/bootstrap/labels/docs","name":"docs","color":"0088cc"},{"url":"https://api.github.com/repos/twbs/bootstrap/labels/v4","name":"v4","color":"563d7c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-20T23:15:19Z","updated_at":"2016-07-21T08:20:21Z","closed_at":null,"body":"CSS files should be loaded asynchronously to speed up page loading.\r\n\r\nStandard way:\r\n\r\n`<link href=\"../dist/css/bootstrap.min.css\" rel=\"stylesheet\">`\r\n\r\nAsynchronous way (with non-javascript fallback):\r\n\r\n`<script>!function(e){\"use strict\";var t=function(t,n,o){function i(e){return s.body?e():void setTimeout(function(){i(e)})}function r(){a.addEventListener&&a.removeEventListener(\"load\",r),a.media=o||\"all\"}var d,s=e.document,a=s.createElement(\"link\");if(n)d=n;else{var l=(s.body||s.getElementsByTagName(\"head\")[0]).childNodes;d=l[l.length-1]}var f=s.styleSheets;a.rel=\"stylesheet\",a.href=t,a.media=\"only x\",i(function(){d.parentNode.insertBefore(a,n?d:d.nextSibling)});var u=function(e){for(var t=a.href,n=f.length;n--;)if(f[n].href===t)return e();setTimeout(function(){u(e)})};return a.addEventListener&&a.addEventListener(\"load\",r),a.onloadcssdefined=u,u(r),a};\"undefined\"!=typeof exports?exports.loadCSS=t:e.loadCSS=t}(\"undefined\"!=typeof global?global:this),loadCSS(\"../dist/css/bootstrap.min.css\");</script><noscript><link href=\"../dist/css/bootstrap.min.css\" rel=\"stylesheet\"></noscript>`"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/234187905","html_url":"https://github.com/twbs/bootstrap/issues/20334#issuecomment-234187905","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/20334","id":234187905,"user":{"login":"tomlutzenberger","id":5536910,"avatar_url":"https://avatars.githubusercontent.com/u/5536910?v=3","gravatar_id":"","url":"https://api.github.com/users/tomlutzenberger","html_url":"https://github.com/tomlutzenberger","followers_url":"https://api.github.com/users/tomlutzenberger/followers","following_url":"https://api.github.com/users/tomlutzenberger/following{/other_user}","gists_url":"https://api.github.com/users/tomlutzenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/tomlutzenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomlutzenberger/subscriptions","organizations_url":"https://api.github.com/users/tomlutzenberger/orgs","repos_url":"https://api.github.com/users/tomlutzenberger/repos","events_url":"https://api.github.com/users/tomlutzenberger/events{/privacy}","received_events_url":"https://api.github.com/users/tomlutzenberger/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T08:20:21Z","updated_at":"2016-07-21T08:20:21Z","body":"How about just using the `async` atrribute in the `<link ...>` ?"}}
{"actor":{"display_login":"tomlutzenberger"}}