cancel
Showing results for 
Search instead for 
Did you mean: 

Add javascript on top of the page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Add javascript on top of the page

I have built my own extension in magento2 to add script into the head section of the html document, and I did it successfully. But I need help regarding , how to add script just after the head tag starts. My only goal is that, my script should be the first script on the document.