WordPress.org

Ready to get started?Download WordPress

Forums

Search in Place
[resolved] not compatible with Script Gzip (4 posts)

  1. Li-An
    Member
    Posted 1 year ago #

  2. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    The issue with the "scripts-gzip" plugin is simple. The "scripts-gzip" plugin combines all javascript files and sets only one script tag at beginning of head tag, that's a trouble for all extensions that use the WordPress's function: wp_localize_script to create global javascript variables, because this variables are not present when the script is loaded.

    I've modified the codepeople_search_in_place.js file to avoid this issue, please download this file again.

    My recommendation, for the scripts-gzip plugin developers, is move the script tag generated on the plugin before close the body tag.

    Best regards.

  3. Li-An
    Member
    Posted 1 year ago #

    Thank you. I will tell it to the Scripts Gzip developer. Maybe he will update his plugin :-)

    Well, it does not seem to do the trick. Not a problem, I decided to desactivate Scripts Gzip for the moment.

  4. Li-An
    Member
    Posted 1 year ago #

    You were right: the updated plugin is compatible with Scripts Gzip. I just did not update it correctly. Sorry for that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.