• Plugin Author Matt Keys

    (@mattkeys)


    I have been concerned about the performance of this plugin with FontAwesome 5.x icon sets and I am wondering if anyone using the beta has experienced issues, or what other thoughts the community may have.

    With 5.x of FontAwesome there are many more icons now and the number seems to just keep climbing. I’ve noticed that pulling the list of icons in the admin area feels slower to me than it did with the 4.x set. Are other people experiencing this too?

    One possible solution that has been requested in the past is to allow people to choose which icons get loaded in a field, or which weight of icons to use. This could help limit the number of icons to load. I am not sure if this is something that could reasonably be managed while defining the field, or if a separate admin area to create/manage different icon sets would be needed.

    Just wanted to share my thinking on this as it has so far prevented me from releasing the beta.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes it is slower, but that’s ok in the admin section.

    an idea could be to save the $fa_icons[‘list’] in the format you use later, so you don’t have to do two nested foreach on every get_ajax_query call.
    (I only did a really quick overlook on the code, so probably there is a good reason for the loops)

    Plugin Author Matt Keys

    (@mattkeys)

    Thanks for the feedback. It has been a minute since I wrote that bit, so I will revisit it and see if there is any reason for it anymore, could yield some decent time savings.

    It can be kind of slow in the admin but most of the clients worry more about the user end so this is not a really bad issue. I am working with a lot of Custom Fields on a site right now and I don’t really feel that is a painful wait for it to load.

    I personally think an option for selecting some of the icons instead of the whole library would be extremely useful depending on the site that is being developed. Filtering icons would provide a faster experience for our clients as they usually don’t use all of the icons.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Too many icons? Performance issues?’ is closed to new replies.