• Resolved Tijmen Smit

    (@tijmensmit)


    When no caching / optimization is enabled I get a var wpslSettings = {} in the html source, but when I enable the LiteSpeed Cache plugin this var is gone and some code breaks.

    I’m trying to make it so that when users use my plugin and activate the LiteSpeed Cache plugin that the wpslSettings var is automatically excluded from any form of minification / optimization, but I can’t really find any filters / documentation how to do this automatically.

    I’m using the three filters that are mentioned here to exclude the js files from my plugin ( this works fine ) , but this doesn’t affect the wpslSettings var. It’s still being removed.

    What filter should I look at to prevent var wpslSettings = {} from being stripped in the output?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.