Making Ninja Popups work with Autoptimize – optimize JS option
-
Hi
I came across Autoptimize because it’s recommended by WPEngine who I use for my higher traffic website. I’ve been really pleased with the results, thank you, and have donated suitably to a good cause!
However a site I am trying to optimize at the moment uses Ninja Popups. Whilst I have read that other people have been able to make Ninja Popups work the Autoptimize I have so far failed.
I wondered if the CDN was causing a problem so have excluded the Autoptimize cache from the CDN – that wasn’t the solution.
I’ve also tried excluding ninjapopups.min.js and jquery.js from the JS optimization in the Autoptimize advanced settings.
I did see if ARSCode the developers could help. They had admin access and FTP access but came back with “Ok it looks like from using this plugin Autoptimize popups will not work well.”
I have the live site here running Ninja Popups:
and the same site in a staging area with autoptimize running with Javascript optimization. The popups are not working in this instance and I am getting these errors:
SyntaxError: expected expression, got ‘<‘ – in the php file that Autoptimize generates
and ReferenceError: snp_enable_mobile is not defined in ninjapopups.min.js
If you’re happy to look at this I can privately send you access to the staging area and FTP access.
I want to be able to make the most of the benefits of Autoptimize and it would be a shame to lose out on so much of that if there is a workaround to the Ninja Plugin problem.
I hope you can help please.
J
- The topic ‘Making Ninja Popups work with Autoptimize – optimize JS option’ is closed to new replies.