Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2129 from 18F/lag-issues
Browse files Browse the repository at this point in the history
Address Chrome lag issues
  • Loading branch information
meiqimichelle authored Nov 8, 2016
2 parents 42b2cf5 + c0f0191 commit 1ae5328
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 47 deletions.
2 changes: 1 addition & 1 deletion _how-it-works/aml-fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ For more information:

<img src="{{ site.baseurl }}/img/AML_disbursements.svg" alt="Chart shows the amount of total funds in the AML reclamation program in 2016, 10.7 billion. 8.2 billion of that total has been disbursed. 2.5 billion of that total has not been disbursed." class="article_img-100 u-margin-top u-margin-bottom">

The AML database ([e-AMLIS](https://amlis.osmre.gov/Default.aspx)) only accounts for construction costs. It doesn't include other work on which a state or tribe may spend AML funds that are necessary for the reclamation of a site, such as the costs of identification, site assessments, and contracting, nor does it include other types of spending, such as set-asides and emergency projects ([30 U.S. Code § 1231 describes other types of spending](https://www.law.cornell.edu/uscode/text/30/1231)).
The AML database ([e-AMLIS](https://amlis.osmre.gov/Default.aspx)) only accounts for construction costs. It doesn't include other work on which a state or tribe may spend AML funds that are necessary for the reclamation of a site, such as the costs of identification, site assessments, and contracting, nor does it include other types of spending, such as set-asides and emergency projects ([30 U.S. Code § 1231 describes other types of spending](https://www.law.cornell.edu/uscode/text/30/1231)).

## AML revenue and disbursements

Expand Down
39 changes: 24 additions & 15 deletions js/lib/explore.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,28 @@

/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.1 | https://github.com/wilddeer/stickyfill
* v. 1.1.9 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/

module.exports = (function(doc, win) {
/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.4 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/

module.exports = (function(doc, win) {
if (!doc) {
doc = document;
}

if (!win) {
win = window;
}

var watchArray = [],
scroll,
initialized = false,
Expand Down Expand Up @@ -176,7 +183,7 @@
}

function mergeObjects(targetObj, sourceObject) {
for (key in sourceObject) {
for (var key in sourceObject) {
if (sourceObject.hasOwnProperty(key)) {
targetObj[key] = sourceObject[key];
}
Expand All @@ -200,7 +207,7 @@
rebuild();
return;
}

if (win.pageYOffset != scroll.top) {
updateScrollPos();
recalcAllPos();
Expand Down Expand Up @@ -247,7 +254,7 @@
}

function initElement(el) {
if (isNaN(parseFloat(el.computed.top)) || el.isCell) return;
if (isNaN(parseFloat(el.computed.top)) || el.isCell || el.computed.display == 'none') return;

el.inited = true;

Expand Down Expand Up @@ -373,7 +380,8 @@
marginBottom: computedStyle.marginBottom,
marginLeft: computedStyle.marginLeft,
marginRight: computedStyle.marginRight,
cssFloat: computedStyle.cssFloat
cssFloat: computedStyle.cssFloat,
display: computedStyle.display
},
numeric = {
top: parseNumeric(computedStyle.top),
Expand All @@ -399,7 +407,7 @@
},
nodeOffset = getElementOffset(node),
parentOffset = getElementOffset(parentNode),

parent = {
node: parentNode,
css: {
Expand Down Expand Up @@ -496,8 +504,8 @@
updateScrollPos();
initAll();

win.addEventListener('scroll', onScroll);
win.addEventListener('wheel', onWheel);
win.addEventListener('scroll', onScroll, { passive: true });
win.addEventListener('wheel', onWheel, { passive: true });

//watch for width changes
win.addEventListener('resize', rebuild);
Expand All @@ -515,11 +523,11 @@
if (!initialized) return;

deinitAll();

for (var i = watchArray.length - 1; i >= 0; i--) {
watchArray[i] = getElementParams(watchArray[i].node);
}

initAll();
}

Expand All @@ -537,7 +545,7 @@

function stop() {
pause();
deinitAll();
deinitAll();
}

function kill() {
Expand Down Expand Up @@ -588,7 +596,8 @@
stop: stop,
kill: kill
};
})
});


/***/ },
/* 5 */
Expand Down
39 changes: 24 additions & 15 deletions js/lib/narrative.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,28 @@

/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.1 | https://github.com/wilddeer/stickyfill
* v. 1.1.9 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/

module.exports = (function(doc, win) {
/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.4 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/

module.exports = (function(doc, win) {
if (!doc) {
doc = document;
}

if (!win) {
win = window;
}

var watchArray = [],
scroll,
initialized = false,
Expand Down Expand Up @@ -180,7 +187,7 @@
}

function mergeObjects(targetObj, sourceObject) {
for (key in sourceObject) {
for (var key in sourceObject) {
if (sourceObject.hasOwnProperty(key)) {
targetObj[key] = sourceObject[key];
}
Expand All @@ -204,7 +211,7 @@
rebuild();
return;
}

if (win.pageYOffset != scroll.top) {
updateScrollPos();
recalcAllPos();
Expand Down Expand Up @@ -251,7 +258,7 @@
}

function initElement(el) {
if (isNaN(parseFloat(el.computed.top)) || el.isCell) return;
if (isNaN(parseFloat(el.computed.top)) || el.isCell || el.computed.display == 'none') return;

el.inited = true;

Expand Down Expand Up @@ -377,7 +384,8 @@
marginBottom: computedStyle.marginBottom,
marginLeft: computedStyle.marginLeft,
marginRight: computedStyle.marginRight,
cssFloat: computedStyle.cssFloat
cssFloat: computedStyle.cssFloat,
display: computedStyle.display
},
numeric = {
top: parseNumeric(computedStyle.top),
Expand All @@ -403,7 +411,7 @@
},
nodeOffset = getElementOffset(node),
parentOffset = getElementOffset(parentNode),

parent = {
node: parentNode,
css: {
Expand Down Expand Up @@ -500,8 +508,8 @@
updateScrollPos();
initAll();

win.addEventListener('scroll', onScroll);
win.addEventListener('wheel', onWheel);
win.addEventListener('scroll', onScroll, { passive: true });
win.addEventListener('wheel', onWheel, { passive: true });

//watch for width changes
win.addEventListener('resize', rebuild);
Expand All @@ -519,11 +527,11 @@
if (!initialized) return;

deinitAll();

for (var i = watchArray.length - 1; i >= 0; i--) {
watchArray[i] = getElementParams(watchArray[i].node);
}

initAll();
}

Expand All @@ -541,7 +549,7 @@

function stop() {
pause();
deinitAll();
deinitAll();
}

function kill() {
Expand Down Expand Up @@ -592,7 +600,8 @@
stop: stop,
kill: kill
};
})
});


/***/ },

Expand Down
39 changes: 24 additions & 15 deletions js/lib/state-pages.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,28 @@

/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.1 | https://github.com/wilddeer/stickyfill
* v. 1.1.9 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/

module.exports = (function(doc, win) {
/*!
* Stickyfill -- `position: sticky` polyfill
* v. 1.1.4 | https://github.com/wilddeer/stickyfill
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* MIT License
*/

module.exports = (function(doc, win) {
if (!doc) {
doc = document;
}

if (!win) {
win = window;
}

var watchArray = [],
scroll,
initialized = false,
Expand Down Expand Up @@ -193,7 +200,7 @@
}

function mergeObjects(targetObj, sourceObject) {
for (key in sourceObject) {
for (var key in sourceObject) {
if (sourceObject.hasOwnProperty(key)) {
targetObj[key] = sourceObject[key];
}
Expand All @@ -217,7 +224,7 @@
rebuild();
return;
}

if (win.pageYOffset != scroll.top) {
updateScrollPos();
recalcAllPos();
Expand Down Expand Up @@ -264,7 +271,7 @@
}

function initElement(el) {
if (isNaN(parseFloat(el.computed.top)) || el.isCell) return;
if (isNaN(parseFloat(el.computed.top)) || el.isCell || el.computed.display == 'none') return;

el.inited = true;

Expand Down Expand Up @@ -390,7 +397,8 @@
marginBottom: computedStyle.marginBottom,
marginLeft: computedStyle.marginLeft,
marginRight: computedStyle.marginRight,
cssFloat: computedStyle.cssFloat
cssFloat: computedStyle.cssFloat,
display: computedStyle.display
},
numeric = {
top: parseNumeric(computedStyle.top),
Expand All @@ -416,7 +424,7 @@
},
nodeOffset = getElementOffset(node),
parentOffset = getElementOffset(parentNode),

parent = {
node: parentNode,
css: {
Expand Down Expand Up @@ -513,8 +521,8 @@
updateScrollPos();
initAll();

win.addEventListener('scroll', onScroll);
win.addEventListener('wheel', onWheel);
win.addEventListener('scroll', onScroll, { passive: true });
win.addEventListener('wheel', onWheel, { passive: true });

//watch for width changes
win.addEventListener('resize', rebuild);
Expand All @@ -532,11 +540,11 @@
if (!initialized) return;

deinitAll();

for (var i = watchArray.length - 1; i >= 0; i--) {
watchArray[i] = getElementParams(watchArray[i].node);
}

initAll();
}

Expand All @@ -554,7 +562,7 @@

function stop() {
pause();
deinitAll();
deinitAll();
}

function kill() {
Expand Down Expand Up @@ -605,7 +613,8 @@
stop: stop,
kill: kill
};
})
});


/***/ },
/* 5 */,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"list.js": "^1.1.1",
"object-assign": "^4.1.0",
"pty.js": "github:chjj/pty.js",
"stickyfill": "^1.1.1",
"stickyfill": "github:18f/stickyfill#master",
"svg4everybody": "github:18f/svg4everybody#non-symbol",
"svgeo": "^0.3.5",
"topojson": "github:mbostock/topojson#oversize",
Expand Down

0 comments on commit 1ae5328

Please sign in to comment.