Проблема состоит в том что мне нужно загрузить тег <head> методом jquery .load(), но почему он не загружается.
Вот такой текст написан в документации:
jQuery uses the browser's .innerHTML property to parse the retrieved document and insert it into the current document. During this process, browsers often filter elements from the document such as <html>, <title>, or <head> elements. As a result, the elements retrieved by .load() may not be exactly the same as if the document were retrieved directly by the browser.
Я английским не владею, но на сколько понял то наверное нельзя так делать.
Но мне то нужно заменить тег <head> и например <title> в нем.
Как сделать это?
И как загруженные элементы через .load() добавить в DOM?