Sometimes InstaShow might take a while to load. There are several reasons for that, so let’s examine them in this article.
Here’s what influences the loading speed:
- The number of sources. The more sources and filters you have in your feed, the longer it takes for the plugin to load.
- The grid size (the number of columns and rows).
- The media limit (API option). We have a default limit of 100 images per source, to keep up the plugin performance. The higher the limit, the longer it takes for the plugin to load. To find out more about the number of images restriction, go to….(link)
Ways to speed up the plugin loading:
- There is a server-side cache in the plugin. So it takes time to load for the first time, or when the cache is expired. But all further requests are loaded much faster, as the plugin gets the data from the cache. You need to make sure that your cache is working. To do it, check for the storage folder at /wp-content/plugins/elfsight-instashow/api/storage.
- There is the client-side cache as well. It allows to store the images in your browser’s local storage. This is useful for the sites that feature one InstaShow feed on several pages. This way when a visitor is browsing your website, the feed loads without delay on each page after the initial load. You can set the client-side cache with the cache media time option in each feed’s settings.
- The size of the grid and the number of sources you use also affect the loading speed in a negative way. Using smaller grid and fewer sources will lead to a significant increase in loading speed.