• Resolved TrueLie

    (@footballher0)


    Please: consider to replace the class name. As I understand it, the plugin handles the entire structure and it would be great to have a function like this to rename class names. This is not directly related to optimization, but it does have an impact. For example, if you replace the ?elementor? Builder class with ?elem?, the size of styles and dom structures will decrease significantly)

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

    (@alignak)

    For example, if you replace the ?elementor? Builder class with ?elem?, the size of styles and dom structures will decrease significantly)

    If I were to do that, any CSS code referring elementor would not match elem… so it’s not feasible. Furthermore, some classes are dynamic and name changes in every pageview.

    Processing this kind of thing would also be slower to process, thus TTFB would be slower.
    And there is also a limitation on what you can do with PHP on wordpress, as what you are requesting is to basically rewrite the output.

    Those things are best handled at the origin, so kindy post your request on elementor support, as they are the only ones who can do that.

    Thanks

    Thread Starter TrueLie

    (@footballher0)

    Thanks for the answer.

    Yes, they made such a request, but so far there is no response and apparently there is a desire to do it too).

    I made the request to You because I thought velocity handles all styles and could rename them. For example, the wp-hide plugin (https://www.wp-hide.com/how-it-works/plugin-features/) can do this (I checked it myself), but unfortunately they are not compatible with fast velocity.

    Plugin Author Raul P.

    (@alignak)

    Just letting you know, that wp hide is compatible with FVM, so if that works you can use it.

    I haven’t tried their Advanced CSS Options options though, but from my understanding I’m not 100% sure if it does what you asked for… or if it does, it may be a bit slow doing it.

    Either way, thank you for pointing that out. I’ll take a look at what their plugin is doing and see if it’s something I may want to add to FVM as well.
    But I don’t think I will add it soon, as from my experience, that level of modification usually causes incompatibility with some themes.

    But as long as it works for you, please feel free to use wp hide + fvm.

    Thanks

    sermalefico

    (@sermalefico)

    This library rewrites classes and ids in CSS, HTML, and JavaScript files in order.

    in case it helps you … or if you think of how to implement it in some way … it sounds interesting

    Munch.js

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing the class name in the structure’ is closed to new replies.