is there a way to replace script, and make them executed? #78

Closed
opened 2016-11-14 01:03:16 -05:00 by aleen42 · 1 comment
aleen42 commented 2016-11-14 01:03:16 -05:00 (Migrated from github.com)

Hello, is there a way to replace script, and make them executed? I want to load different scripts in different sites, and execute when pjax has been ended.

Hello, is there a way to replace `script`, and make them executed? I want to load different scripts in different sites, and execute when pjax has been ended.
lacrioque commented 2017-11-02 06:57:20 -05:00 (Migrated from github.com)

Regular script tags are executed on pjax-load.
To run code after pjax has loaded listen to the "pjax:complete" event on the document.

Regular script tags are executed on pjax-load. To run code after pjax has loaded listen to the "pjax:complete" event on the document.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#78