Support » Plugin: Ajax Search Lite » loads scripts and styles on every page

  • First of all, thanks for the work on this plugin.
    Is it possible that the code and the files of your plugin are loaded only in the pages where I have inserted the shortcode [wpdreams_ajaxsearchlite]?
    I use your plugin only on 10 pages but the code and the files are in all pages, i’d like remove unused files for loading speed reason.


Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams



    Well, within the Pro version you can do select on which pages should the assets load (conditional asset loading feature), but it is not automatical either.

    The reason being is, that there is no proper way to assign all scripts/styles to the page once the shortcodes are already loaded – so there is no way to tell which page contains the shortcode in time.

    Ernest M.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.