Problems loading .js and .css into external files .php

0

I have an application that has a problem that has never happened before, recently I started using JavaScript to load content without refresh using ajax, but this caused a problem. Every external .php file that is called and needs the finished jquery.js not working, the only way it works is if I call jquery.js again in the external .php file, except that this ends up causing jquery.js to the menu uses, called in the index, stop working, making the menu without action and locking the scrollbar. What could I do to prevent this from happening and why do I not call jquery.js every time it is needed in an external file? I'll leave an example below the flow of my application.

Tobetterexplain:

ThefileIndex.phphasthelinebelow

<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

and detalhes.php to work the JQuery functions need the same row as above.

    
asked by anonymous 15.04.2018 / 19:23

0 answers