{"action":"created","comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/pulls/comments/148775676","pull_request_review_id":74071675,"id":148775676,"diff_hunk":"@@ -561,17 +569,18 @@ Modernizr.load( [\n \n \t\t\t\t\t// Load the MathML dependency. Since the polyfill is only loaded\n \t\t\t\t\t// when !Modernizr.mathml, we can skip the test here.\n-\t\t\t\t\tModernizr.load( {\n-\t\t\t\t\t\tload: \"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=Accessible\",\n-\t\t\t\t\t\ttestReady: function() {\n-\t\t\t\t\t\t\treturn ( window.MathJax && window.MathJax.isReady );\n-\t\t\t\t\t\t},\n+\t\t\t\t\tModernizr.load( [ {\n+\t\t\t\t\t\tload: \"timeout=500!https://cdn.jsdelivr.net/npm/mathjax@BOWER_VERSION_MATHJAX/MathJax.js?config=Accessible\",\n \t\t\t\t\t\tcomplete: function() {\n+\t\t\t\t\t\t\tModernizr.load( [ {\n+\t\t\t\t\t\t\t\ttest: window.MathJax === undefined,\n+\t\t\t\t\t\t\t\tyep: \"mthjx!MathJax.js?config=Accessible\"\n+\t\t\t\t\t\t\t} ] );\n \n \t\t\t\t\t\t\t// Identify that initialization has completed\n \t\t\t\t\t\t\twb.ready( $document, componentName );","path":"src/core/wb.js","position":33,"original_position":33,"commit_id":"ec66fc7e3a4476985051736e9352646d73d38f4f","original_commit_id":"ec66fc7e3a4476985051736e9352646d73d38f4f","user":{"login":"duboisp","id":1676030,"avatar_url":"https://avatars0.githubusercontent.com/u/1676030?v=4","gravatar_id":"","url":"https://api.github.com/users/duboisp","html_url":"https://github.com/duboisp","followers_url":"https://api.github.com/users/duboisp/followers","following_url":"https://api.github.com/users/duboisp/following{/other_user}","gists_url":"https://api.github.com/users/duboisp/gists{/gist_id}","starred_url":"https://api.github.com/users/duboisp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duboisp/subscriptions","organizations_url":"https://api.github.com/users/duboisp/orgs","repos_url":"https://api.github.com/users/duboisp/repos","events_url":"https://api.github.com/users/duboisp/events{/privacy}","received_events_url":"https://api.github.com/users/duboisp/received_events","type":"User","site_admin":false},"body":"@nathanv To avoid the race condition you can run a test with ```testReady``` like:\r\n```js\r\nModernizr.load( {\r\n\tload: \"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=Accessible\",\r\n\ttestReady: function() {\r\n\t\treturn ( window.MathJax && window.MathJax.isReady );\r\n\t},\r\n\tcomplete: function() {\r\n\r\n\t\t// Identify that initialization has completed\r\n\t\twb.ready( $document, componentName );\r\n\t}\r\n} );\r\n```\r\n https://github.com/wet-boew/wet-boew/blob/master/src/core/wb.js#L566","created_at":"2017-11-03T13:03:18Z","updated_at":"2017-11-03T13:03:18Z","html_url":"https://github.com/wet-boew/wet-boew/pull/8101#discussion_r148775676","pull_request_url":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/wet-boew/wet-boew/pulls/comments/148775676"},"html":{"href":"https://github.com/wet-boew/wet-boew/pull/8101#discussion_r148775676"},"pull_request":{"href":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101"}},"in_reply_to_id":144315040},"pull_request":{"url":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101","id":133028067,"html_url":"https://github.com/wet-boew/wet-boew/pull/8101","diff_url":"https://github.com/wet-boew/wet-boew/pull/8101.diff","patch_url":"https://github.com/wet-boew/wet-boew/pull/8101.patch","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/8101","number":8101,"state":"open","locked":false,"title":"mathjax - fix use of CDN and allow for fail-over if there is no connectivity","user":{"login":"nathanv","id":518114,"avatar_url":"https://avatars0.githubusercontent.com/u/518114?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanv","html_url":"https://github.com/nathanv","followers_url":"https://api.github.com/users/nathanv/followers","following_url":"https://api.github.com/users/nathanv/following{/other_user}","gists_url":"https://api.github.com/users/nathanv/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanv/subscriptions","organizations_url":"https://api.github.com/users/nathanv/orgs","repos_url":"https://api.github.com/users/nathanv/repos","events_url":"https://api.github.com/users/nathanv/events{/privacy}","received_events_url":"https://api.github.com/users/nathanv/received_events","type":"User","site_admin":false},"body":"This would close #8078 if accepted.","created_at":"2017-07-28T18:39:01Z","updated_at":"2017-11-03T13:03:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3cb88315a489ef09777830c4019d73caa8d6a79","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101/commits","review_comments_url":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101/comments","review_comment_url":"https://api.github.com/repos/wet-boew/wet-boew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/8101/comments","statuses_url":"https://api.github.com/repos/wet-boew/wet-boew/statuses/ec66fc7e3a4476985051736e9352646d73d38f4f","head":{"label":"nathanv:issue8078","ref":"issue8078","sha":"ec66fc7e3a4476985051736e9352646d73d38f4f","user":{"login":"nathanv","id":518114,"avatar_url":"https://avatars0.githubusercontent.com/u/518114?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanv","html_url":"https://github.com/nathanv","followers_url":"https://api.github.com/users/nathanv/followers","following_url":"https://api.github.com/users/nathanv/following{/other_user}","gists_url":"https://api.github.com/users/nathanv/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanv/subscriptions","organizations_url":"https://api.github.com/users/nathanv/orgs","repos_url":"https://api.github.com/users/nathanv/repos","events_url":"https://api.github.com/users/nathanv/events{/privacy}","received_events_url":"https://api.github.com/users/nathanv/received_events","type":"User","site_admin":false},"repo":{"id":97157482,"name":"wet-boew","full_name":"nathanv/wet-boew","owner":{"login":"nathanv","id":518114,"avatar_url":"https://avatars0.githubusercontent.com/u/518114?v=4","gravatar_id":"","url":"https://api.github.com/users/nathanv","html_url":"https://github.com/nathanv","followers_url":"https://api.github.com/users/nathanv/followers","following_url":"https://api.github.com/users/nathanv/following{/other_user}","gists_url":"https://api.github.com/users/nathanv/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanv/subscriptions","organizations_url":"https://api.github.com/users/nathanv/orgs","repos_url":"https://api.github.com/users/nathanv/repos","events_url":"https://api.github.com/users/nathanv/events{/privacy}","received_events_url":"https://api.github.com/users/nathanv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathanv/wet-boew","description":"Web Experience Toolkit (WET): Open source code library for building innovative websites that are accessible, usable, interoperable, mobile-friendly and multilingual. This collaborative open source project is led by the Government of Canada.","fork":true,"url":"https://api.github.com/repos/nathanv/wet-boew","forks_url":"https://api.github.com/repos/nathanv/wet-boew/forks","keys_url":"https://api.github.com/repos/nathanv/wet-boew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathanv/wet-boew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathanv/wet-boew/teams","hooks_url":"https://api.github.com/repos/nathanv/wet-boew/hooks","issue_events_url":"https://api.github.com/repos/nathanv/wet-boew/issues/events{/number}","events_url":"https://api.github.com/repos/nathanv/wet-boew/events","assignees_url":"https://api.github.com/repos/nathanv/wet-boew/assignees{/user}","branches_url":"https://api.github.com/repos/nathanv/wet-boew/branches{/branch}","tags_url":"https://api.github.com/repos/nathanv/wet-boew/tags","blobs_url":"https://api.github.com/repos/nathanv/wet-boew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathanv/wet-boew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathanv/wet-boew/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathanv/wet-boew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathanv/wet-boew/statuses/{sha}","languages_url":"https://api.github.com/repos/nathanv/wet-boew/languages","stargazers_url":"https://api.github.com/repos/nathanv/wet-boew/stargazers","contributors_url":"https://api.github.com/repos/nathanv/wet-boew/contributors","subscribers_url":"https://api.github.com/repos/nathanv/wet-boew/subscribers","subscription_url":"https://api.github.com/repos/nathanv/wet-boew/subscription","commits_url":"https://api.github.com/repos/nathanv/wet-boew/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathanv/wet-boew/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathanv/wet-boew/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathanv/wet-boew/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathanv/wet-boew/contents/{+path}","compare_url":"https://api.github.com/repos/nathanv/wet-boew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathanv/wet-boew/merges","archive_url":"https://api.github.com/repos/nathanv/wet-boew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathanv/wet-boew/downloads","issues_url":"https://api.github.com/repos/nathanv/wet-boew/issues{/number}","pulls_url":"https://api.github.com/repos/nathanv/wet-boew/pulls{/number}","milestones_url":"https://api.github.com/repos/nathanv/wet-boew/milestones{/number}","notifications_url":"https://api.github.com/repos/nathanv/wet-boew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathanv/wet-boew/labels{/name}","releases_url":"https://api.github.com/repos/nathanv/wet-boew/releases{/id}","deployments_url":"https://api.github.com/repos/nathanv/wet-boew/deployments","created_at":"2017-07-13T19:22:44Z","updated_at":"2017-07-13T19:22:49Z","pushed_at":"2017-08-15T20:00:14Z","git_url":"git://github.com/nathanv/wet-boew.git","ssh_url":"git@github.com:nathanv/wet-boew.git","clone_url":"https://github.com/nathanv/wet-boew.git","svn_url":"https://github.com/nathanv/wet-boew","homepage":"http://wet-boew.github.io/wet-boew/index-en.html","size":124495,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wet-boew:master","ref":"master","sha":"c8caa5a1fbbbea430313313c4e0fa820e11040e7","user":{"login":"wet-boew","id":1730142,"avatar_url":"https://avatars1.githubusercontent.com/u/1730142?v=4","gravatar_id":"","url":"https://api.github.com/users/wet-boew","html_url":"https://github.com/wet-boew","followers_url":"https://api.github.com/users/wet-boew/followers","following_url":"https://api.github.com/users/wet-boew/following{/other_user}","gists_url":"https://api.github.com/users/wet-boew/gists{/gist_id}","starred_url":"https://api.github.com/users/wet-boew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wet-boew/subscriptions","organizations_url":"https://api.github.com/users/wet-boew/orgs","repos_url":"https://api.github.com/users/wet-boew/repos","events_url":"https://api.github.com/users/wet-boew/events{/privacy}","received_events_url":"https://api.github.com/users/wet-boew/received_events","type":"Organization","site_admin":false},"repo":{"id":4297273,"name":"wet-boew","full_name":"wet-boew/wet-boew","owner":{"login":"wet-boew","id":1730142,"avatar_url":"https://avatars1.githubusercontent.com/u/1730142?v=4","gravatar_id":"","url":"https://api.github.com/users/wet-boew","html_url":"https://github.com/wet-boew","followers_url":"https://api.github.com/users/wet-boew/followers","following_url":"https://api.github.com/users/wet-boew/following{/other_user}","gists_url":"https://api.github.com/users/wet-boew/gists{/gist_id}","starred_url":"https://api.github.com/users/wet-boew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wet-boew/subscriptions","organizations_url":"https://api.github.com/users/wet-boew/orgs","repos_url":"https://api.github.com/users/wet-boew/repos","events_url":"https://api.github.com/users/wet-boew/events{/privacy}","received_events_url":"https://api.github.com/users/wet-boew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wet-boew/wet-boew","description":"Web Experience Toolkit (WET): Open source code library for building innovative websites that are accessible, usable, interoperable, mobile-friendly and multilingual. This collaborative open source project is led by the Government of Canada.","fork":false,"url":"https://api.github.com/repos/wet-boew/wet-boew","forks_url":"https://api.github.com/repos/wet-boew/wet-boew/forks","keys_url":"https://api.github.com/repos/wet-boew/wet-boew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wet-boew/wet-boew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wet-boew/wet-boew/teams","hooks_url":"https://api.github.com/repos/wet-boew/wet-boew/hooks","issue_events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/events{/number}","events_url":"https://api.github.com/repos/wet-boew/wet-boew/events","assignees_url":"https://api.github.com/repos/wet-boew/wet-boew/assignees{/user}","branches_url":"https://api.github.com/repos/wet-boew/wet-boew/branches{/branch}","tags_url":"https://api.github.com/repos/wet-boew/wet-boew/tags","blobs_url":"https://api.github.com/repos/wet-boew/wet-boew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wet-boew/wet-boew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wet-boew/wet-boew/git/refs{/sha}","trees_url":"https://api.github.com/repos/wet-boew/wet-boew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wet-boew/wet-boew/statuses/{sha}","languages_url":"https://api.github.com/repos/wet-boew/wet-boew/languages","stargazers_url":"https://api.github.com/repos/wet-boew/wet-boew/stargazers","contributors_url":"https://api.github.com/repos/wet-boew/wet-boew/contributors","subscribers_url":"https://api.github.com/repos/wet-boew/wet-boew/subscribers","subscription_url":"https://api.github.com/repos/wet-boew/wet-boew/subscription","commits_url":"https://api.github.com/repos/wet-boew/wet-boew/commits{/sha}","git_commits_url":"https://api.github.com/repos/wet-boew/wet-boew/git/commits{/sha}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/comments{/number}","issue_comment_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments{/number}","contents_url":"https://api.github.com/repos/wet-boew/wet-boew/contents/{+path}","compare_url":"https://api.github.com/repos/wet-boew/wet-boew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wet-boew/wet-boew/merges","archive_url":"https://api.github.com/repos/wet-boew/wet-boew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wet-boew/wet-boew/downloads","issues_url":"https://api.github.com/repos/wet-boew/wet-boew/issues{/number}","pulls_url":"https://api.github.com/repos/wet-boew/wet-boew/pulls{/number}","milestones_url":"https://api.github.com/repos/wet-boew/wet-boew/milestones{/number}","notifications_url":"https://api.github.com/repos/wet-boew/wet-boew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/labels{/name}","releases_url":"https://api.github.com/repos/wet-boew/wet-boew/releases{/id}","deployments_url":"https://api.github.com/repos/wet-boew/wet-boew/deployments","created_at":"2012-05-11T13:31:20Z","updated_at":"2017-11-01T14:41:07Z","pushed_at":"2017-11-03T12:40:50Z","git_url":"git://github.com/wet-boew/wet-boew.git","ssh_url":"git@github.com:wet-boew/wet-boew.git","clone_url":"https://github.com/wet-boew/wet-boew.git","svn_url":"https://github.com/wet-boew/wet-boew","homepage":"http://wet-boew.github.io/wet-boew/index-en.html","size":124527,"stargazers_count":1040,"watchers_count":1040,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":558,"mirror_url":null,"archived":false,"open_issues_count":387,"forks":558,"open_issues":387,"watchers":1040,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101"},"html":{"href":"https://github.com/wet-boew/wet-boew/pull/8101"},"issue":{"href":"https://api.github.com/repos/wet-boew/wet-boew/issues/8101"},"comments":{"href":"https://api.github.com/repos/wet-boew/wet-boew/issues/8101/comments"},"review_comments":{"href":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101/comments"},"review_comment":{"href":"https://api.github.com/repos/wet-boew/wet-boew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wet-boew/wet-boew/pulls/8101/commits"},"statuses":{"href":"https://api.github.com/repos/wet-boew/wet-boew/statuses/ec66fc7e3a4476985051736e9352646d73d38f4f"}},"author_association":"NONE"}}
{"actor":{"display_login":"duboisp"}}