Is my minified javascript conflicting with my AWeber javascript? - javascript

I’ve got a page with an AWeber popup form that’s intended to be made visible by clicking a “Get Music” button. You can see it here:
http://www.radionowhere.net
This was working fine until I set up Cloudflare as a CDN for my site and started using it to minify my CSS and JS. Now the Aweber form appears as soon as my page loads, without waiting for the button to be clicked.
Checking the page source, it seems as though the AW javascript in the middle of the page hasn’t been affected by the minification, so I assume the problem must have something to do with conflicting script that Cloudflare has been minified.
Anyone with an idea on how to fix this? Thanks!

Did you have Rocket Loader turned on as well? I'm inclined to say it is less likely of an issue with Minify than Rocket Loader.

Related

How to stop page from redirecting to the previous visited page?

The issue i have is that when i click on any page in my menu, it loads and then goes back to the previous page i visited. I contacted my hosting provider and they said there must be some code somewhere inside the website or database. But i know for sure i didnt put any code in there. Does anyone know where i could find this code or where the problem could be?
I already tried changing the permalinks and all, but this didnt work.
I expect the page to just normally load into my browser window without redirecting to the previous page.
URL is: http://www.vandeheg.nl/
From what I can see this is a problem with the JavaScript on the site, as with JS disabled I can access all the pages without issue.
I'd recommend trying with all plugins deactivated, and then if that doesn't solve the issue have a look through your theme code for anything like window.location that might imply a forced JS redirect.

Website - Keeps reverting back to old version after changes have been made?

So I've created my website using HTML, CSS, Javascript, Bootstrap and PHP. Now I created a basic website and I decided to change a few things on it. So I have done this by opening up Notepad++ and changing things like spelling and glyphicons and then I save the changes and then click run in Notepad++ and all is great in the browser. Changes applied successfully. Then I go back to my folder and open with either chrome, IE or firefox and again great the change was successful.
Though as soon as I click on a tab to got to another newly changed page the changes aren't there and it's reverted back to an older version. Then I'll click to go back to the page I was just on and it will have one or two of the features I've just changed but the rest has reverted.
But if I go back into the folder or Notepad++ and run the index.html or about.html file then it's fine again until I navigate the pages then it starts reverting back.
I need help as this is such a pain and I have no idea why it's not just updating?
Any questions please just ask. Been at this for three days!
I think you should check if your hyperlinks are linking to the right pages. Maybe you renamed your pages? Make sure you run the right, changed, index.html from the right direction in your browser, not the old version.

Weebly page frequently fails to load 3rd party scripts. What in my code is causing this race condition?

Sometimes on my website, I will load a page and some widgets will fail to load. If I refresh the page, they may or may not load again so I know that the widgets are not broken but there is obviously some sort of problem with how my pages load. Everything used to load fine and have recently noticed this problem across the entire site. Is there any kind of solution to fix this?
Here is the page source to an example page that frequently does not load properly:
http://www.infoblizzard.com/tech.html
Weebly does not allow much if any editing to the jquery. Here are the pieces of code that I can edit. Hopefully someone can help me identify some pieces in this code that are being disruptive:
https://onedrive.live.com/view.aspx?resid=6C9D4FF074D36401!112&ithint=file%2cdocx&app=Word&authkey=!ALCU_9yQhW4ZLxU
Thanks some much any help!

How to prevent CSS and JS to load if Adblock is detected?

Recently I came across a website that sells adds ( http://buysellads.com/ ) on a friends computer with Adblock enabled and the site seems to detect the browser add-on and it disables the CSS and JS.
I have been trying to read their code, but I can not seem to find the line that makes this happen. I know there are ways to detect and give the user a message to disable the plugin, but I find this way to be more clever.
I appreciate if somebody knows or finds the code that triggers and executes.
Bonus question: How would this work with a cache plugin like W3 Total Cache for Wordpress? I make this question because I wonder how the website would look after the person whitelisted the page and the site refreshes. In theory it should display the CSS and JS because Adblock is not found, but I am not sure if cache plugins would break that and display the site as it looked before without any CSS or JS.
Thanks in advance.
I don't know how this particular site does it, but one possibility is to add/load the JS and CSS files via an ad serving system that is blocked by Adblock (load the style and script tags in an ad placement).
Depending on how Adblock works, it could be enough to host the files on a subdomain like ads.your-domain.com or banner.your-domain.com.
You could then set display=none with inline style on a wrapper containing the whole page, and display=block on an element outside the wrapper, containing the message to the user. The CSS file loaded via an ad serving system could then change the display properties of the two elements (so the users without Adblock gets the content of the page and not the message).

javascript - different behaviour on page refresh

I have a really weird problem.
I have a site (running wordpress), and I use jquery roundabout plugin.
When I visit the site with the address bar, the site is displayed fine. When I'm already in the site and I hit refresh - everything is messed up. I checked in both chrome and firefox, and I get the same result. In IE there is no problem.
Also, I noticed that the problem occurs only when doing a soft refresh (F5) and it's ok when doing a hard refresh (Ctrl+F5)
You can check for yourself in my test site
http://50.112.34.111
try to press enter in the address bar a few times - should display ok. try to refresh - and you'll see the problem...
First of all I would try to put the JS includes (<script.../>) in the header AFTER all CSS includes! That might already help. Since the CSS might influence your JS, JS has to know all CSS before it gets loaded.

Categories