Meta tag in <head> just before </head>

I need to place a meta tag in <head> section but just before </head>

I used jquery :

$('head').append("<meta name='xxxxxxx' content='my content'>")

The metatag is placed in the <head> section but before the <Style>.

I have not found a suitable solution to place it in last position.

Any idea I could overcome this?

That certainly should work, so maybe it's not working because Knack itself is running some code that inserts the styles after your code executes?