Skip to content

Wrong events lifecycle in case when ajax request is not async #738

@iovzt

Description

@iovzt

When we use container reloading with synchronous ajax request

$.pjax.reload({container: '#pjax-container', async: false});

events fire in following order:

  • pjax:beforeSend
  • pjax:beforeReplace
  • pjax:success
  • pjax:complete
  • pjax:end
  • pjax:start
  • pjax:send

I think it's unexpected behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions