Page 1 of 1

Error: Synchronous is deprecated

Posted: Thu Jan 07, 2016 9:15 am
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.

Re: Error: Synchronous is deprecated

Posted: Fri Jan 08, 2016 12:18 am
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.