Skip to content

reload javascript external source(?) #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fari-99 opened this issue Apr 22, 2016 · 2 comments
Closed

reload javascript external source(?) #624

fari-99 opened this issue Apr 22, 2016 · 2 comments

Comments

@fari-99
Copy link

fari-99 commented Apr 22, 2016

Hello, this is my first time using this plugin, so I want to make sure I'm on the right track,

the Pjax is working fine and all, but if I go to a page (example 'A' page) who have a script and CSS in there, the page not load it (i must refresh the page to fully load it), I'm using an external script like this in the bottom of 'A' page

<link href='localhost:8000/css/owl.carousel.css' rel='stylesheet' type='text/css'>
<script src='localhost:8000/js/owl.carousel.js'></script>
<script src='localhost:8000/js/myJSfunction.js'></script>

I'm already see this issue #600 and #331, because lack of my knowledge in this matter i don't know where i should fix my problem. or at least can i load my external script in this code $(document).on('ready pjax:success', function(){ loadJS(); }) ?

Thanks,

Best Regard.

@fari-99
Copy link
Author

fari-99 commented Apr 25, 2016

maybe we can use layout reloading? I don't understand what it is, and I don't know how to use it in Laravel, can someone help?? haha T_T.

@fari-99
Copy link
Author

fari-99 commented May 10, 2016

sorry, i just found out that all my JS library is not using your requirement like this if DOM is ready
$(document).on('ready pjax:success', function() { //code here }); (because another js for css create by someone else).

@fari-99 fari-99 closed this as completed May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant