Missing default viewport metadata

70 views
Skip to first unread message

Holtkamp

unread,
Aug 12, 2011, 5:46:44 PM8/12/11
to jqmPhp
First of all, thanks for the great initiative to have the JQuery
Mobile tags generated by PHP using a light-weight framework.

I would like to suggest to add a 'meta()' function to the jqmHead()
class. Using this function it should be easy to add <meta/> elements
to the <head/> element. Additionally I would suggest to invoke this
function in the constructor of the jqmHead class upon initialization
to set the following <meta/> element:

<meta name="viewport" content="width=device-width, initial-scale=1">

which is documented here: http://jquerymobile.com/demos/1.0b2/#/demos/1.0b2/docs/pages/page-anatomy.html

This will render the page in the dimensions which are optimized for
the device a user has. Right now I have to add this to <meta/> element
manually, which is not a problem, but which would be nice to have on
default.

Cheers!
Reply all
Reply to author
Forward
0 new messages