Error: Synchronous is deprecated
Posted: Thu Jan 07, 2016 9:15 am
Hi There,
For some reason in my console.log I'm having warning/error as:
Browser chrome
My controller looks like:
My illumina_manage_tools2.blade.php looks like:
I've folder structure as:
application->public->js->illumina->output_samples.js
My output_samples.js looks like:
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:
That is deferred until all the libraries are loaded, but no success.!
Please guide.
For some reason in my console.log I'm having warning/error as:
laravel 4.2Synchronous 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/.
Browser chrome
My controller looks like:
Code: Select all
elseif ($parameter == "illumina_manage_tools"){
return View::make('illumina.illumina_manage_tools2');
}
Code: Select all
{{ HTML::script('js/illumina/output_samples.js'); }}
application->public->js->illumina->output_samples.js
My output_samples.js looks like:
Code: Select all
alert("hello");
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>
Please guide.