-2
Good afternoon,
I have a code for php where it has a list of publications and it uses the Ajax, but unfortunately it is being the last to be downloaded by the page.
After all the files you have inside the while, and is causing the Ajax does not work properly..
Doubt: There is a way to import JS before any load?
I tried for the tag Defer and Async of HTML5 but it didn’t work.
Put your HTML code and where you’re referencing the code so we can help you
– Victor Laio
If you don’t want the answer to be asynchronous, why use AJAX? Why don’t you deliver all the data in the HTTP response with PHP?
– Woss
Good reading https://css-tricks.com/prefetching-preloading-prebrowsing/ but browse other sources!
– hugocsl
@The code is too big to put here, I tried to load asynchronous, but no difference http://prntscr.com/m5g24c
– Pedro Cordista
Without the code, there’s no helping you, buddy...
– Victor Laio