Okay
  Public Ticket #3131377
Loading time issue: flatpickr
Closed

Comments

  •  6
    Alberto started the conversation

    Hi,

    With the last update, my website is very slow. I look the cascade and I saw that the problem is on the script "https://npmcdn.com/flatpickr/dist/l10n/es.js?ver=1.9.1"

    Could you check it?

    What is the use of this script?

  •  390
    Ripul replied

    This is a translation script less than 2kb converts flatpicker into espanol. 

    The slowness can be at multiple levels. If scripts are your problem, installing a CDN can defnitenite help.

    Optionally, just disable LOgin scripts from global loading in vibebp - settings, let the users log in to the specific page.

  • Chala88 replied

    Hi,

    As you can see in the screenshot (http://prntscr.com/WRdEH4PCn4V8) this script (flatpicker) is the script with more loading time. Can i disable it? How to do it?

    I have cloudflare.

    I don't want to disable login scripts because I want the users can acces to their courses in any page.

  • [deleted] replied

    Without that script you calendar wont appear translated.

    to disable it please add this code in your wplms-customizer.php file in wplms customizer plugin : 

    add_filter('vibebp_get_flatpickrLang',function($x){return 'en';});

  • Chala88 replied

    Thank you! You are the best :)