Running a PageSpeed report on a site powered by Searchspring may report some speed improvements possible in the handling of Searchspring CDN resources. Below is a list of commonly reported issues.
Defer Parsing Of JavaScript
Due to the way Searchspring loads it is best to have Searchspring’s JS load as early as possible so we can trigger our API search request as soon as possible. If you place our JavaScript at the bottom of your HTML we will have to wait for your page to load before we even begin to make our search request.
Minify JavaScript / Minify CSS
Searchspring’s resources should already be minified before being pushed to our servers. If you’re seeing this being reported it’s most likely due to professional services work done for your integration. Please submit a ticket at Searchspring Help Desk.
Add Expires Headers
Setting a cache expiration delay on many of our resources is complicated by a few factors that make setting long expiration times not possible at this time:
- Our resources are hosted on a Content Delivery Network (CDN) with hundreds of servers worldwide.
- We need to ensure that updates to our libraries are able to be quickly received by all of our clients and their customers. If we were to accidentally introduce a bug to one of our libraries we would not want our customers to have to wait a day to receive a fix.
- Many assets on our CDN are directly editable by our customers in our management console. When a customer makes a change to an asset they do not want to have to wait hours to be able to see that change.
Comments
0 comments
Article is closed for comments.