Js file instead of harcoded
-
I see this plugin is adding hardcoded js codes/tags to the page, for the enabled options. (we also have the pro version)
We are using the Asset Cleanup plugin to optimize our pages, and one of the things we’ve done is that we deferred many js and jquery files.
As a result, your plugin is giving the “jquery not found” error in the console and this causes some load delays.
Assets Cleanup also doesn’t offer Deferring Hardcoded js codes (but it lets us defer the js files)
If you, instead of generating hardcoded js codes, add a single, or multiple js files for your plugin’s settings, this helps us easily manage the location where the file is being loaded, to get rid of these issues.
You may also say, you intentionally hardcoded so that it is loaded as soon the page is opened in order to fully function. But that is not an issue in our case, as we use Preloader and the user won’t see the page until it is fully ready.
Thanks
- The topic ‘Js file instead of harcoded’ is closed to new replies.