@trullock/page-manager 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trullock/page-manager",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Single page app manager",
5
5
  "exports": {
6
6
  ".": "./src/index.js"
package/src/index.js CHANGED
@@ -298,6 +298,11 @@ export async function init(opts) {
298
298
 
299
299
  await initLoading();
300
300
 
301
+ await showLoading();
302
+ }
303
+
304
+ export async function ready()
305
+ {
301
306
  // set initial page
302
307
  emitUrlChanged(window.location.pathname + window.location.search + window.location.hash);
303
308
  showPage(window.location.pathname + window.location.search + window.location.hash, null, { action: 'load', distance: 0 }).catch(e => {
@@ -310,7 +315,6 @@ export async function init(opts) {
310
315
  handleHistoryAction({ action: e.action }, e.url, e.data, page);
311
316
  return page;
312
317
  });
313
-
314
318
  }
315
319
  });
316
320