Releases: youtube/spfjs
SPF 24 (v2.4.0)
The SPF 24 (v2.4.0) release includes the following features:
- Custom headers can now be sent with requests (#390)
- Set headers globally using the
request-headers
config - Set headers per-request using the
headers
option
- Set headers globally using the
- Error events will now provide the full XHR object in addition
to the message for more detail (#402)- Thanks @tchiotludo!
This release fixes the following bugs:
- Script and style tags with alternate mime types (e.g.
<script type="application/json">
) will no longer be silently
removed during response processing (#400)- Thanks @tchiotludo!
This release includes the following optimizations:
- Releases now contain the updated docs at the tagged commit
(#406)
SPF 23 (v2.3.2)
The SPF 23 (v2.3.2) release fixes the following bugs:
- Skew between timing values from Date.now and performance.now
is fixed by always preferring performance.now (#389)
SPF 23 (v2.3.1)
SPF 23 (v2.3.0)
The SPF 23 (v2.3.0) release includes the following features:
- Preconnecting to links is now supported (#124)
- Include
<link rel="spf-preconnect">
tags to preresolve DNS and open a
connection early for decreased latency
- Include
- Cached and prefetched state is now available for multipart responses (#333)
- Use
timing.spfCached
andtiming.spfPrefetched
during part processing
- Use
- As advanced option, XHR
responseType="json"
is now supported (#317)- This moves JSON parsing off of the main thread to reduce CPU contention
but prevents processing chunked responses on-the-fly (and therefore
eliminates much of the performance benefits of multipart responses).
Set theadvanced-response-type-json
config to enable the feature.
- This moves JSON parsing off of the main thread to reduce CPU contention
This release fixes the following bugs:
- Cached and prefetched responses are no longer delayed by 1s in WebKit
browsers when in the background (#337)
This release includes the following optimizations:
SPF 22 (v2.2.0)
The SPF 22 (v2.2.0) release includes the following features:
- Scroll position is restored on back/forward navigation (#263)
- Scroll position is reset to top on new navigation (#285)
This release fixes the following bugs:
- Updating a CSS file using manages style loading no longer fails if the
<link>
is not in the<head>
(#278) - Navigating from a hash to non-hash URL on the same page (e.g. from
/page#target
to/page
) no longer triggers a request (#314)
This release includes the following optimizations:
SPF 21 (v2.1.2)
This update to SPF 21 (v2.1.2) fixes the following bugs:
- Ensure Resource Timing data is valid in Chrome 40 (#268)
- See also http://crbug.com/375388
- Always use the most recent Resource Timing data for a URL (#268)
SPF 21 (v2.1.1)
The SPF 21 (v2.1.1) release includes the following features:
- Improved handling of URL identifiers and file extensions (#222)
- Support for configurable persistant query parameters (#134)
Also, if you build SPF from source, this release now uses npm
to build and manage dependencies instead of a make
and custom scripts (#7).
SPF 21 (v2.1.0)
Note: Due to a mistake cutting the v2.1.0 release, this version is missing one of the intended features (#222). Please use v2.1.1 instead: https://github.com/youtube/spfjs/releases/tag/v2.1.1
SPF 20 (v2.0.1)
This point release fixes the following bugs:
- IE 8 throws "invalid argument" when loading resources (#175)
SPF 20 (v2.0.0)
The SPF 20 (v2.0.0) release is the first major distribution release since open-sourcing.
This release includes the following major changes:
- Parsing and processing of JS and CSS in all response fields (#24)
- Standardized model of JS and CSS execution (#25)
- UMD compatibility (#40)
the following major bug fixes:
- Allow navigation to the current URL (#126)
and other fixes and enhancements.
This release also includes ready-to-use files built for distribution for the first time, which can now be easily installed with popular package managers:
npm install spf
will place files innode_modules/spf/dist/
bower install spf
will place files inbower_components/spf/dist/
Finally, distribution releases are on various CDNs, such as: