• Resolved hirschferkel

    (@hirschferkel)


    Hi,

    I want to defer all Javascript which is executed from plugins folder but one plugin! I did not find a way to exclude just this plugin-folder from defering …

    Is there any way to sa: please defer all Javascript files from Pluginsfolder but not a specific plugin?

    Best

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi, you can exclude anything by a matching path, so adding /plugins/someplugin/ will exclude all, but /plugins/someplugin/somefile.js will only exclude that specific file.

    Thread Starter hirschferkel

    (@hirschferkel)

    Hi Raul, thanks for your answer, but maybe you got me wrong.

    There is an option, where I can input pathes to defer js files. So when I use /plugins/ path, all in js files plugins folder will be defered.

    And there is exactly one folder, which I want to exclude from being defered. So hwo do I do that?

    E.g. /plugin/something/ should not be defered?

    Best

    (@moderators: how many years do you want to keep on reviewing any comments, because I once wrote a wrong line?)

    • This reply was modified 4 months, 2 weeks ago by hirschferkel.
    Moderator Support Moderator

    (@moderator)

    ”how many years do you want to keep on reviewing any comments, because I once wrote a wrong line?” – @hirschferkel

    It was 3 guideline violations, for which you received 3 warnings.

    How many years? For that, at least 1 year, and it has been only 6 months.

    We don’t want to have to manually review your replies any more than you want us to, but when publicly published forum guidelines are violated despite repeated warnings, we do have to enforce them.

    Plugin Author Raul P.

    (@alignak)

    Hi, sorry, you meant the opposite of what I said.
    Scripts in this plugin are added manually, because if you add everything they can break (not all scripts support deferring depending on how they are coded).

    In this case, instead of using a more generic path, you need to spend some time adding all plugin directories you specifically want to defer, and do not add the ones you want to exclude.

    That filter was made that way, to force developers to specify which ones to optimize.
    It was though for third party scripts, even if it also works for local scripts.
    The logic might be outdated a bit, sorry about that.

    In the near future, I plan to review some of the logic and push another update with a few more options.

    Thread Starter hirschferkel

    (@hirschferkel)

    @alignak o.k I understand. It was just the question if there is some hidden code which can exclude specific items. I understand the logic and it’s a little bit laborious to add everything manually. Especially, if you change things, you have always to remember to update FVM. So I think it would be more straight forward to change the logic here maybe in the future.

    Thanks for your help, best

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