Trying to get basic example working on website load and nothing happens
See original GitHub issueI have this in the head of my pages:
<script src="<?php bloginfo('template_directory'); ?>/loadgo-master/loadgo.min.js" type="text/javascript"></script>
<script>
$(window).load(function () {
$("#loaderlogo").load(function() {
$('#loaderlogo').loadgo();
}).each(function() {
if(this.complete) $(this).load();
});
});
</script>
With the loaderlogo image (inside a div) as the first html element after the body. Running jquery 2.2.3 (always updated to latest versions) - all I see is a logo at the top of the page, not centered, no overlay on page, and never begins loading. Is it a jquery version issue? Not getting any errors. Testing in Firefox.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
What to Do When a Website Won't Load | PCMag
If you already have a VPN, fire it up and see if the site loads properly. (Alternatively, if your VPN was already on...
Read more >Websites don't load - troubleshoot and fix error messages
First, let's figure out where the problem is · Open a new tab and check to see if you can load another website...
Read more >Why Can't I Open Any Web Pages When Connected to the ...
If you can connect to the Internet, but web pages do not open, the problem is somewhere in the send and receive process....
Read more >10 Reasons for Slow Website Loading (With Solutions)
Understand these 10 core reasons for slow website loading and learn how to resolve these issues & your traffic, revenue, and credibility.
Read more >Top 10 Reasons for Slow Loading Websites (And How to Fix It)
Top 10 Reasons Your Site is Loading Slow (And steps you can take to fix it!) · 1. Unoptimized Images · 2. JavaScript...
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
No problem I’ll share if and when I get it all sorted out - thanks again!
I’m unable to reproduce your error. I did a fresh installation of Wordpress (v4.5.1), then LoadGo and all seems to work fine.
What version of Wordpress and PHP are you using?
PS: can you open the issue in the repository, please? https://github.com/franverona/LoadGo-for-WP
EDIT: plugin is now officially released https://wordpress.org/plugins/loadgo-for-wp/