Suggestion: Suggest loading the script with the nomodule attribute
Opened this issue · 2 comments
coliff commented
All the browsers which support the nomodule support fully support SVGs so loading svg4everybody as follows:
<script nomodule src="/path/to/svg4everybody.js"></script>
will save HTTP requests/bandwidth for all modern browsers (approx 93% marketshare).
All old browsers will load svg4everybody as normal.
Let me know if you'd like me to open a PR to update the README.
inquiztr commented
how do you manually invoke svg4everybody() call for only those browsers?
coliff commented
<script nomodule>svg4everybody()</script>