Closed IamXytric closed 3 years ago
<!-- Matice Laravel Translations generated --> <script> const Matice = { locale: "en", fallbackLocale: "en", translations: { ... } } </script>
<!-- Matice Laravel Translations generated --> <div id="matice-translations"> <script type="text/javascript"> const Matice = { locale: "en", fallbackLocale: "en", translations: { ... } } </script> </div>
The div#matice-translations seems excessive and <div>s are not supported within the <head> forcing the directive into the <body>. Not that this is a big problem, but having the option to put it in <head> would be nice.
This is just a very minor nuisance, but in HTML5 it is recommended to omit [type="text/javascript"] from <script>. Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
Hi! Now possible with the release 1.1.3 . Moved the id in the script tag directly.
id
Expected behavior
Current behavior
Reasoning
The div#matice-translations seems excessive and <div>s are not supported within the <head> forcing the directive into the <body>. Not that this is a big problem, but having the option to put it in <head> would be nice.
This is just a very minor nuisance, but in HTML5 it is recommended to omit [type="text/javascript"] from <script>. Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
Versions