Search found 15 matches
- Wed Sep 13, 2017 10:39 pm
- Forum: [3.x] Style Development
- Topic: Why script-tags are placed at the bottom of the page in Prosilver?
- Replies: 22
- Views: 80133
Re: Why script-tags are placed at the bottom of the page in Prosilver?
Ok then let me go a different route you can maybe understand better: exactly what in phpBB flickers when loading that is caused by jQuery being near the bottom of the page? If, for example, I want to made an extension that automatically shows a mobile version of the page or changes the width of the...
- Wed Sep 13, 2017 10:14 pm
- Forum: [3.x] Style Development
- Topic: Why script-tags are placed at the bottom of the page in Prosilver?
- Replies: 22
- Views: 80133
Re: Why script-tags are placed at the bottom of the page in Prosilver?
I echo the comment already mentioned: loading jQuery near the bottom of pages is fairly standard practice and isn't anything new. I'm not sure do we have some kind of a language barrier here but to me "standard" sounds like "this is how it should be done". I agree many sites put...
- Wed Sep 13, 2017 9:41 pm
- Forum: [3.x] Style Development
- Topic: Why script-tags are placed at the bottom of the page in Prosilver?
- Replies: 22
- Views: 80133
Re: Why script-tags are placed at the bottom of the page in Prosilver?
As far as a standard yes it requires the dom to be ready that is what document.ready means I don't buy this. Only difference between script tags in <head> and <body> is the amount of markup above the script tag, right? Even if the script tag for jQuery is at the bottom of the page there's still at ...
- Wed Sep 13, 2017 6:39 pm
- Forum: [3.x] Style Development
- Topic: Why script-tags are placed at the bottom of the page in Prosilver?
- Replies: 22
- Views: 80133
Re: Why script-tags are placed at the bottom of the page in Prosilver?
Thanks for the explanation. jquery should always be in the footer as it implicitly requires the son to be built. This is a standard practice I don't understand this. Son? Standard? Are you talking about jQuery in general or jQuery in phpBB? In my knowledge there's no requirements about where to put ...
- Wed Sep 13, 2017 2:50 pm
- Forum: [3.x] Style Development
- Topic: Why script-tags are placed at the bottom of the page in Prosilver?
- Replies: 22
- Views: 80133
Why script-tags are placed at the bottom of the page in Prosilver?
In Prosilver, script-tags are placed at the bottom of the page. This allows static content of the page to be shown a little bit faster to a user who doesn't have necessary resources yet in his browser cache. On some sites, this may be beneficial. For example, if the site has mostly random users who ...