- Fixes: fixed incorrect
null
check when verifying the existence of theContent-Type
header
- Fixes: fails the document parse when the response doesn't have a
Content-Type
header
- Adds: developers can enable the
requireCssBeforeComplete
flag to force Pjax to fetch and append all the CSS stylesheets before firing thepjax:complete
event
- Fixes: page transitions break on slow connections #16
- Adds: new
scriptImportLocation
option allowing developers to choose where the dynamically fetched scripts are appended, defaults todocument.head
- Fixes: updates readme
- Fixes: inline script elements will be appended every time the page loads while scripts with a
src
attribute will only be fetched and appended once - Fixes: updates script fetch response tracking functionality
- Fixes: cleaned up stylesheet fetch logic
- Fixes: switches dependencies from
@codewithkyle
to@pageworks
- Fixes: tracks the request ID and doesn't handle stale request
- Fixes: no longer default handling aborted request types (
this._request === null
)
- Fixes: sends Fetch with
method: GET
and the following headers:'X-Requested-With': 'XMLHttpRequest'
and'X-Pjax': 'true'
- Fixes: script loading bug when the current
document
and the incomingdocument
don't match
- Adds:
pjax:scriptContentLoaded
event that fires on thedocument
when all scripts have been fetched and appended to the body
- Fixes: updates CSS regex href matching to handle cases where developers use a hash/timestamp for cache busting
- Fixes: updates script src regex matching to handle cases where developers use a hash/timestamp for cache busting
- Adds: swaps
XHR
request withFetch
- Adds: new
importScripts
option to Pjax - Adds: new
importCSS
option to Pjax - Adds: when
importScripts
is set totrue
(default) any script elements will be fetched and appended to thedocument.body
- Adds: when
importCSS
is set totrue
(default) any CSS (inHEAD
or via<link>
) will be fetched and appended - Adds: public static
load()
method to trigger a manual page load
- Removes: no longer calls
lastChance()
when the new document contains<script>
elements - Removes:
timeout
option from Pjax since we can't abort fetch
- Adds: Pjax manages the
HTML
status classes that developers can use to manage page transitions/animations
- Fixes: switches dependencies to use the version provided by
@codewithkyle
- Fixes: updates
StateManager
to user the new static methods provided in the1.0.1
update - Fixes: updates readme
- Fixes: updates version number for Pjax console log
- Fixes: bug that occures when a page is cached but the user triggers a popstate via touch gestures
- Adds:
webpack
andhttp-server
- Adds:
/testing
directory - Adds: new
npm run bundle
script for running webpack - Adds: new
npm run test
script for compiling, bundling, and launching a static http server for testing features - Adds: basic demo page and testing content
- Fixes: updates console logs for better debugging
- Adds: allows users to device an array of custom attributes to prevent Pjax event listeners from firing #39
- Fixes: updates IE check to use
fuel-device-manager
package
- Fixes:
switchSelectors
method now verifies that the temporary document isn't null, if it is Pjax will have the browser load the page
- Fixes: prefetching 404 page caching bug #36
- Fixes: prefetching 302 redirect cache bug #36
- Fixes: updates
fuel-state-manager
to use the official npm package version - Fixes: prefetching non-200 status links #36
- Adds: new
StateManager
class manages the windows history
- Fixes: updates
global.d.ts
- Fixes: cleans up if statements to adhere to coding standards
- Fixes: updates functions and methods to follow TypeScript guidelines
- Removes: browserify
- Removes: all methods related to window history management
- Adds: When switching containers if a new page contians
<script>
elements the pjax will load the page using the native browser functionality #31
- Fixes: Switched
prefent-defualt
attribute toprevent-pjax
in order to make make preventing pjax less confusing - Fixes: Switches the event for calling
clearPrefetched
to the correct mouse event type
- Fixes: Fixes a bug where links with an empty
target
attribute would prevent default. Now we only prevent default iftarget="_blank"
#29 - Fixes: Fixes bug where pjax would break on IE 11 #30
- Fixes: Fixes
this.cache.status
bug for non-200 response status
- Fixes: Sets
this.state.history
tofalse
by default - Fixes: Calls
this.handlePushState()
oninit
to replace the default browser history with our custom history #28
- Fixes: Switches
mouseover
andmouseout
tomouseenter
andmouseleave
to fix theGET
request spam bug #27
- Adds: Pjax can listen for
pjax:continue
so developers can use custom page transitions - Adds: Pjax custom event documenation
- Adds: Pjax's
pjax:send
event is now aCustomEvent
ande.details
contains the event's triggering element ine.details.el
- Fixes: Updates the file structure
- Fixes: Bug where
pjax:send
wasn't always firing so front-end developers couldn't end their page transitions - Fixes: Big where the
cacheBust
option was always adding a?
to the request even when set tofalse
- Adds: XMLHttpRequest page transitions
- Adds: Switches request to return a promise
- Adds: Handles non-200 status pages
- Adds: Better documentation
- Adds: Updated readme
- Adds: Prefetches links on
mouseover
event - Adds: Better 'Prevent Default' checks
- Adds: Converted to Typescript
- Adds: New changelog