Uncaught TypeError: Cannot read property 'overlay' of undefined
See original GitHub issueloadgo.min.js:14 Uncaught TypeError: Cannot read property 'overlay' of undefined
<div id="loading">
<div class="l-container">
<div class="content">
<img id="logo" src=""logo.png" alt="Logo" class="img-responsive">
</div>
</div>
</div>
#loading {
position: fixed;
z-index: 1;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100vw;
height: 100vh;
background-color: white;
display: table;
.l-container {
text-align: center;
display: table-cell;
vertical-align: middle;
.content {
position: relative;
width: 25%;
text-align: center;
display: inline-block;
}
}
}
$('#logo').loadgo('setprogress', Pace.start());
am trying to do something like ur YT demo but for normal app “not WP” but as ur examples lack suck a thing and ur demo doesnt Explains exactly how so…
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
OverlayManager Error. Uncaught TypeError: Cannot read ...
Uncaught TypeError : Cannot read property 'hasOwnProperty' of undefined. It doesn't seem like overlayScenes is ever defined, but addScene calls ...
Read more >Resolving TypeError: Cannot Read Property of Undefined ...
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Cannot read property 'ma' of undefined
HI Rashmeet, lightning:overlayLibrary will not work in the lightning:app.If you are trying to preview it using a Lightning:app , this error ...
Read more >cannot read properties of undefined ...
The "Cannot read property addEventListener of null" error occurs when trying to call the addEventListener () method on an element that isn't present...
Read more >Uncaught TypeError: Cannot read property 'left' of undefined
Uncaught TypeError : Cannot read property 'left' of undefined ... If you see this error in browser console, it is generally due to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
many thanx for ur help, will give that a try.
Wow, that’s right. Maybe that sentence should be rewriten. My bad, sorry.
I will add a new section soon to explain how to use LoadGo with something like Pace in order to achieve a website loading progress.
Let me explain how should be done (the way I know).
setprogress
function, so our logo will be updated with current progress.In my WP plugin, the first JS code to be executed was this (cleaned for this explanation):
Then I had to modify Pace script by including code to update LoadGo with
setprogress
(line 226 and 903).Finally, we need some HTML code:
And CSS (this link).
You can use this Pace modified logo, and with my explanations you should be able to use both libraries.
I hope it helps you.
-Fran