victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Language Files and Assets #645

Open column111 opened 6 years ago

column111 commented 6 years ago

Hi, for performance issues I want to use assets, but the problem will be the dynamic loading of the languages. Is there any possibility to solve this or to load all the desired language files at the beginning?

victorjonsson commented 6 years ago

You have to explain to me what you mean by "assets". You can use require to make include the language files in your bundle. If that's what you're thinking on?

column111 commented 6 years ago

Yes, I have meant the rails assets pipeline and I have already tried to include the language file by require. That doesn't work but I will try it once again.

victorjonsson commented 6 years ago

Well, thats something completely different compared to what I was referring to.

If I have understood it correctly it's only a matter of where you put the js files in the file system.