Error: Synchronous is deprecated

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
publicGenome
Forum Contributor
Posts: 110
Joined: Thu Apr 16, 2015 7:55 am

Error: Synchronous is deprecated

Post by publicGenome »

Hi There,
For some reason in my console.log I'm having warning/error as:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
laravel 4.2
Browser chrome

My controller looks like:

Code: Select all

		elseif ($parameter == "illumina_manage_tools"){
			return View::make('illumina.illumina_manage_tools2');

		}
My illumina_manage_tools2.blade.php looks like:

Code: Select all

{{ HTML::script('js/illumina/output_samples.js'); }}
I've folder structure as:
application->public->js->illumina->output_samples.js

My output_samples.js looks like:

Code: Select all

alert("hello");
I'm not making any AJAX call, or anything fancy.

I want my page to include this particular js file, and thus not including in header file.
I also tried:

Code: Select all

<script type="text/javascript" defer='defer' src="{{ URL::asset('js/illumina/output_samples.js') }}">
</script>
That is deferred until all the libraries are loaded, but no success.!

Please guide.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Error: Synchronous is deprecated

Post by requinix »

publicGenome wrote:I'm not making any AJAX call, or anything fancy.
Something is. The browser probably told you where. If not, use the browser to watch for the AJAX request and then you'll definitely be able to tell what is doing it.
Post Reply