Single options array and conditional queuing of JS on settings page
-
@cageehv / Rolf
Thanks for making the changes to allow this plugin to be disabled on mobile devices.
I’ve got some further suggestions for your consideration:
– Convert the existing options into a single array option to reduce database calls.
– Only load javascript files on the plugin settings page in the backend, rather than on all pages.
– Move plugin to PHP class structure to reduce chance of function and variable names clashes.
– Move settings page code into a separate file to reduce file size load on frontend.I’ve actually almost complete all of this – I just need to check that the plugin remains functional. Would you like me to share the code with you somehow?
- The topic ‘Single options array and conditional queuing of JS on settings page’ is closed to new replies.