Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

bundle size cut


hi keenthemes

Ho safe it is, to remove those plugins from the compiling bundle "'theme/html/tools/webpack/plugins/plugins.js'" :



// ES6-Shim - ECMAScript 6 compatibility shims for legacy JS engines. Learn more: https://github.com/paulmillr/es6-shim
require("es6-shim/es6-shim.min.js");


// ES6 Promise Polyfill - This is a polyfill of the ES6 Promise: https://github.com/lahmatiy/es6-promise-polyfill
require('es6-promise-polyfill/promise.min.js');

or are they mandatory ?

since I expect my users to use the latest browsers.

thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Hi riterix,

It's safe to remove these 2 plugins if the users use the latest version of browsers.

Thanks



Hi Faizal,

How Latest browsers should be ?, like the minimum ?

Let just say for Firefox ; what's the latest should be, 74 ? 85 ?

same thing for Chrome, could you give us a hint please..

SO just to let our client know that under certain version our product will not perform well

thank you so much



Hi Riterix,

This library doc stated that it can support IE9 and below.
https://github.com/lahmatiy/es6-promise-polyfill

This library is used for sweetalert2. If you have not used sweetalert2 in your project, you can remove it.

https://github.com/paulmillr/es6-shim/
es6-shim library used in formvalidation plugin.

At the moment, Metronic only supports the latest major version of browsers.

Thanks



Thank you sooo much for the calrification Faizal. it was very informative.

I don't use neither (Sweetalert2 or Formvalidation), cool

thank you.



Your welcome happy

Feel free to let us know if you need any help.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(