Wednesday, 20 September 2017

Eliminated the "Loading" text

What I did

I've commented out both of them from  templates/gawainRefHead-L3.phtml file in Test

Result

This eliminates the "loading" text.
and eliminates the vertical scrolling on the screen
The screen was sized to the viewport. "loading" appeared below the viewport, which made the webpage larger than 1 screen.

Resolves Issues  

101,116, (get rid of 'loading' and a duplicate), and
222,223,225, hunting for and eliminating the .map files I thought were the cause.

Tests

Tested for existing pools - 
PaFF/PaFF_20/Rd P4
Test/20170920/of_4
Created a new pool
Test/20170920/of_7

Test results : only observed difference was a lack of the "loading" text.

Test Conclusion

Only jQuery has been used to date, jQuery Mobile has been loaded, but not been used.

Why it worked 

ClubKnight currently loads  jQuery Mobile 1.3.1
jQuery Mobile is supposed to automagically load its .css files.  (For styling and for structure)
It was not loading any .css files in ClubKnight.

jQuery Mobile includes a "Loading" screen while the web page is loading, containing <H1>loading</H1>

jQuery Mobile's Css files include a version which only contains the structure, but not any of the themes, to allow you to hand-roll styling for the UI elements, while accessing the structural widgets.

The version for ClubKnight is
http://code.jquery.com/mobile/1.3.1/jquery.mobile.structure-1.3.1.css

I can't find where the .css  gets specified, so I don't know how to
a) load the .css from the local server
b) specify that particular version

I looked through the jQuery Mobile.js - did not see any loading instructions.

Alternatives tried

I tried manually loading the relevant .css file.  This overwrote the button styling I had created.

No comments:

Post a Comment