How to fix: the default size is shown before jQuery detects the width and height, and it won't resize until i do it manually
in
Processing with Other Languages
•
1 year ago
Hi everyone,
i use processing.js and jQuery and the code below to detect the size of the browser
void
setup
()
{
However, the default size is shown before the jQuery successfully detects the width and height, and it won't resize until i do it manually
size( $(window).width(),
$(window).height() );
However, the default size is shown before the jQuery successfully detects the width and height, and it won't resize until i do it manually
i am thinking about
automatic page refresh .
So how can i tell the computer to refresh page after document loaded?
btw, window.innerWidth, window.innerHeight works
the same as what i see with jQuery
1