Support » Plugin: Enlighter - Customizable Syntax Highlighter » Conflict with Swift Performance Lite

  • Resolved snifflevalve

    (@snifflevalve)


    Hi Andi,

    First of all, what a brilliant plugin! 🙂 Exactly what I was looking for to replace Pastacode (which seems to have been abandoned). Codegroups are the icing on the cake!

    As mentioned in the title, there appears to be a conflict with the Swift Performance Lite (SPL) cache plugin (WP repo). I am using the WPcustom theme based upon Enlighter and the Theme Customizer and have everything set up the way I would like. After clearing the cache, I check out the front end and perfect. Come back to it after navigating to another page and it’s now displayed as raw code; no styling. Clearing caches, both browser (hard refresh) and SPL and it’s still the same – raw code. The only way to have the styling be retained is to deactivate SPL.

    What I am asking is do you perhaps know of any setting in Enlighter that I might try to set to resolve this or perhaps some insight into a setting in SPL that I might adjust. Seems to be CSS related although could also include JS minification.

    As per your FAQ, I checked and the cache folder is writable.

    Again, if I deactivate SPL, Enlighter works perfectly! Love it! 🙂

    Good thing I checked after updating only two posts with code as I have over 80 more to go! 🙂

    Cheers!
    Lyle

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    Hi Lyle,

    as seen on the “Swift Performance Lite” screenshots in the WP Repo i’ve seen their is an option to exclude js/css files. in your case it should work by adding the string plugins/enlighter/ to both fields (related to the location of the Enlighter plugin wp-content/plugins/enlighter/).

    the EnlighterJS files are already minified – this may cause problems when another software tries to alter these files.

    best regards, Andi

    Hi Andi,

    BINGO! That did it!!! 🙂

    Working perfectly now. Thank you so VERY much for this speedy and amazing support!

    Cheers!
    Lyle

    yankiara

    (@yankiara)

    Hi Andi and Lyle,

    Doesn’t seem to work for me because of Mootools library.

    I added plugins/enlighter/ to JS and CSS excludes lists, but I got error messages in JS console saying that Mootools Framework is not loaded.

    Then I added mootools in excludes lists too, and got this:

    TypeError: type is undefined[En savoir plus] mootools.min.js:2:25201
    this.DOMEvent<
    https://ajax.googleapis.com/ajax/libs/mootools/1.6.0/mootools.min.js:2:25201
    release_onready
    https://pavenum.com/blog/:13:1027
    xhr.onload
    https://pavenum.com/blog/:13:1704

    Am I doing something wrong ?

    I Arleady had conflicts with Divi Builder so I have to dequeue mootools with Divi’s Visual Builder, but here the probleme is on frontend, with no Visual Builder.

    @andi: When do you plan to remove Mootools dependencies?

    Thanks in advance!
    Yan

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    Hi Yan,

    please open a new thread for your issue 😉

    you can try the experimental EnlighterJS v3 integration: https://github.com/EnlighterJS/experiments/tree/master/wp-enlighterjs3-compat
    – EnlighterJS v3 doesn’t have any dependencies. the release is projected for december – the WordPress plugn will follow in Q1-2019

    it seems to be a conflict with MooTools and some of your scripts. it can only be resolved by looking deep into the code of your scripts/plugins…

    best regards, Andi

    yankiara

    (@yankiara)

    Hi Andi,

    Sorry, actually I’m gonna wait for the release to test it and won’t open a new ticket as Mootools seems to be old and not really up to date with newer softwares…

    Meanwhile, I just use some basic CSS on my pre tags and it’s ok.

    Thanks again and again for this great plugin!!!

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    the “experimental integration” works fine and has no known issues – you can use it 😉
    generally it is not an issue with MooTools…the problem are “intermediate” javascript developers which didn’t know about javascript language features like extending native types – this may break third party compatibility in some special cases… e.g. with MooTools.

    but for sure – MooTools is not needed anymore these days. therefore EnlighterJS v3 works standalone without any external library.

    Hi Andi!!

    OK I tested the experimental plugin and it works like a charm 🙂

    I though in the first place that themes and colors were not available in this experimental version, but I just misread explanations!

    THANK YOU SO MUCH again for your great work!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conflict with Swift Performance Lite’ is closed to new replies.