Compatibility issue with Maps Marker Pro / defered JS loading




Wordpress LScache Plugin: Compatibility issue with Maps Marker Pro / defered JS loading

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, a user of our mapping plugin Maps Marker Pro reported an issue that maps were not loaded. When analyzing the issue we found that the option Load JS Deferred was causing this issue. Unfortunately I could not find a whitelist option in your plugin to specify which javascripts should not be loaded defered. So currently we had to advise the user to disasble this option. Could you please check if it would be possible to add a related option in a future release? best, Robert The page I need help with: https://www.mapsmarker.com Hi @harmr, Theres a function for js deferred excluded. Please try Tuning->JS Deferred Excludes Best, Eric Thanks for the prompt reply ? will try this! best, Robert Hi @harmr, If you exclude it from JS Defer, it will affect clients page score. Do you think you can load your js library after document is ready? This way it wont be break and also will give a good score. Using jQuery, the format will be like jQuery(function() xxxxx ) per http://learn.jquery.com/using-jquery-core/document-ready/ Hi all, I am the user of Maps Marker Pro that Robert is refering to. Ive tried adding the following lines to the JS Deferred Excludes box, have done a purge all but its still causing problems with the plugin: mapsmarkerpro.js /wp-content/plugins/maps-marker-pro/js/mapsmarkerpro.js mapsmarkerpro /wp-content/plugins/maps-marker-pro/ Any further assistance appreciated. @hailite unfortunately this is not possible as a) as we are not using jQuery but pure Javascript (also for performance reasons & to avoid bloat) b) as it is not possible to load the js library after the document is ready, as the loading of JS is triggered via shortcode and according to my knowledge, this is not possible with WordPress Hi @harmr, I understand but WordPress has loaded jQuery already. Will using its wrapper be a considerable option? Even without using jQuery, you can still use native js to make it load after page loaded by window.onload = function() xxxxx Do you mind to join our slack by https://goo.gl/FG9S4N ? We can discuss there more. using a wrapper is not an option for us. Anyway maps work again, if you add ?mapsmarkerpro.js? (v4.0+) to the JS Deferred Excludes option it works again ? I will enhance our built-in compatibility check accordingly? Just a short update: our developer found a way to support deferred loading ? will be added with the upcoming 4.0 release of Maps Marker Pro?



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference