Skip to content

Commit

Permalink
Merge branch 'develop' into gh-pages
Browse files Browse the repository at this point in the history
* develop:
  v10.1.4
  fix: Reduce FOUC (closes #326)
  • Loading branch information
marcoscaceres committed Feb 13, 2017
2 parents 3e3e8ac + afb000b commit dec4ad3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion builds/respec-w3c-common.build.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions builds/respec-w3c-common.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions js/profile-w3c-common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
"use strict";
// Hide document, because we are about to change it radically.
document.body.hidden = true;

// In case everything else fails, we always want to show the document
window.addEventListener("error", function(err) {
console.error(err);
document.body.hidden = false;
});

// this is only set in a build, not at all in the dev environment
require.config({
shim: {
Expand Down Expand Up @@ -84,6 +93,8 @@ define([
.then(ui.enable)
.catch(function(err) {
console.error(err);
// In case processing fails, we still want to show the document.
document.body.hidden = false;
// even if things go critically bad, we should still try to show the UI
ui.enable();
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "respec",
"version": "10.1.3",
"version": "10.1.4",
"license": "W3C",
"description": "A technical specification pre-processor.",
"engines": {
Expand Down
1 change: 1 addition & 0 deletions src/core/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ document.body.setAttribute("aria-busy", "true");

sub("end-all", () => {
document.body.setAttribute("aria-busy", "false");
document.body.hidden = false;
}, { once: true });

0 comments on commit dec4ad3

Please sign in to comment.