ICONS - How to handle SVG explained

Discuss requests for comments/changes posted in the Issue Tracker for the development of phpBB's style.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB or modifying styles of released phpBB versions. If you need support for phpBB please visit the Support Forums on phpbb.com.

If you have questions regarding creating styles please post in Styles Support & Discussion to receive proper guidance from our staff and community.
User avatar
Registered User
Posts: 972
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars

Re: ICONS - How to handle SVG explained

Post by Arty » Tue Dec 04, 2018 10:35 pm

hanakin wrote:
Fri Feb 02, 2018 12:12 pm
Is it cacheable? Though if I have a page with 100 + icons that has to go through this every load I’m wondering the cost?
Sorry, didn't check area51 for a while. Project has been re-written recently (again), this time its final version and already stable release candidate is available :) Also renamed from SimpleSVG to Iconify.

Yes, its cacheable. By default icons are cached in session storage. Also there is possibility to cache in local storage, but its disabled by default. If both are disabled for some reason, there is backup method of requesting icons that forms identical API requests, so it can be cached in browser. Also its possible to bundle commonly used icons with custom scripts, such as forum's main script.

Post Reply