Skip to content

Releases: katmore/gpu-loading-overlay

more fixes

15 Feb 11:46
fb678dc
Compare
Choose a tag to compare
v1.1.1

scope fix

fixes

15 Feb 11:41
619e831
Compare
Choose a tag to compare
v1.1.0

fix spurious console output

method interface, cancel all spinners, graceful DOM removal

15 Feb 11:21
9936f1e
Compare
Choose a tag to compare

method interface, cancel all spinners, graceful DOM removal

  • new loadingOverlay method interface
  • cancel all active spinners method
  • graceful DOM removal fix

new loadingOverlay method interface

Previously, all methods had to be called by awkwardly invoking loadingOverlay() as a function and then chaining the method.

The need for this is now eliminated; all methods may now be directly invoked from the loadingOverlay object.

  • Example #1: the new way to invoke methods

    Invoke .activate() and .cancel() methods directly.

    var mySpinner = loadingOverlay.activate();
    setTimeout(function() {
       loadingOverlay.cancel(mySpinner);
    },5000);

    For backwards compatibility, the old way to invoke methods via chaining still works.

cancel all active spinners method

The .cancelAll() method will cancel any and all active spinners.

**Example #2: ** natively cancel any active spinners

loadingOverlay.cancelAll();

graceful DOM removal fix

Inconsistent and undesired behavior could occur when the loading overlay wrap container was removed from DOM.

A fix was applied to resolve this circumstance by appending the wrap any time it is missing when the activate() function is called. The activation status of any un-cancelled spinners is also reset.

**Example #3: ** effectively cancel any active spinners via DOM manipulation

var loWrapElem = document.querySelectorAll('.lo-wrap');
for (var i = 0; i < loWrapElem .length; i++) {
    loWrapElem [i].remove();
}

css fixes

05 Dec 20:29
4680e9c
Compare
Choose a tag to compare
lo-wrap modal fix

css fixes

overlay container fixes

01 Nov 00:29
Compare
Choose a tag to compare

Fixed an issue where the loading overlay container does not properly append to the 'body' (or specified target).

remove external dependencies

27 Oct 21:00
Compare
Choose a tag to compare
  • Removed all jQuery dependencies:
    Previously, the code had relied on $().show(), $().hide(), $().append(), $().hasClass(), etc.
    This functionality has been replaced with equivalent routines implemented using 100% vanilla JavaScript.

  • Removed FontAwesome from demo
    FontAwesome had been used for a little clock-icon feature, this has been replaced with an inline SVG

race condition fixes

27 Oct 00:11
Compare
Choose a tag to compare

fix for overlapping invokations of .activate()

removed minified files

23 Mar 22:14
Compare
Choose a tag to compare

Minification with either uglifyjs or minify causes loadingOverlay to break.

more readme updates

23 Mar 21:52
Compare
Choose a tag to compare

Fixed some bad URL links, etc.

updated readme

23 Mar 21:39
Compare
Choose a tag to compare

Updated the README.md with installation instructions, and usage details.