Search found 11 matches

by Sectoid
Fri Sep 15, 2017 10:59 am
Forum: [3.x] Style Development
Topic: Why script-tags are placed at the bottom of the page in Prosilver?
Replies: 22
Views: 2267

Re: Why script-tags are placed at the bottom of the page in Prosilver?

because you have no idea the skill level of the individual making the customization and weather they understand the difference between sync/async and the fact that the dom needs to be built before you can interact with it. It is safer to put it in the footer as you do not have to plan for any of th...
by Sectoid
Thu Sep 14, 2017 1:57 pm
Forum: [3.x] Style Development
Topic: Why script-tags are placed at the bottom of the page in Prosilver?
Replies: 22
Views: 2267

Re: Why script-tags are placed at the bottom of the page in Prosilver?

I don't understand your theorized mobile example. We already have a responsive style which adapts to screen size all without the use of JavaScript. Doing a non-JS solution sounds like a much better and cleaner approach to me. Bad example from me! By hiding I actually meant collapsible elements. For...
by Sectoid
Thu Sep 14, 2017 11:09 am
Forum: [3.x] Style Development
Topic: Why script-tags are placed at the bottom of the page in Prosilver?
Replies: 22
Views: 2267

Re: Why script-tags are placed at the bottom of the page in Prosilver?

ok yes, but thats hacky ajax and its oneway. It only writes to the DB and tricks the user by changing the interface via js. It not two-way which is a much cleaner way of performing things and safer as well. memberlist.php livesearch seems to be two way. so js browser detection? There are far better...
by Sectoid
Thu Sep 14, 2017 9:04 am
Forum: [3.x] Style Development
Topic: Why script-tags are placed at the bottom of the page in Prosilver?
Replies: 22
Views: 2267

Re: Why script-tags are placed at the bottom of the page in Prosilver?

what are you using the change in class name for? and what do you mean by use the pages ajax? the page has no ajax? :shock: viewforum.php already has AJAX functionality: "Mark topics read" but I'm going to extend this much more. <Body> classname (or rather <html> classname) is needed if I want to hi...
by Sectoid
Thu Sep 14, 2017 12:51 am
Forum: [3.x] Style Development
Topic: Why script-tags are placed at the bottom of the page in Prosilver?
Replies: 22
Views: 2267

Re: Why script-tags are placed at the bottom of the page in Prosilver?

Look there is countless debate on this all over the web, and even more documentation out there as to why/when you should opt for the footer/header. The fact of the matter is that it is done for page rendering/performance reasons. https://stackoverflow.com/a/2105394 https://stackoverflow.com/a/12211...
by Sectoid
Thu Sep 14, 2017 12:17 am
Forum: [3.x] Style Development
Topic: Why script-tags are placed at the bottom of the page in Prosilver?
Replies: 22
Views: 2267

Re: Why script-tags are placed at the bottom of the page in Prosilver?

So you haven't actually run into this issue developing an extension or doing something with phpBB? As long as jQuery is at the bottom I can't do what I want to do. That's why I'd like to see jQuery in the <head> in the next version of the Prosilver. The way jQuery is loaded in prosilver has not cha...
by Sectoid
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: 2267

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...
by Sectoid
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: 2267

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 jQuery at the end b...
by Sectoid
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: 2267

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 ...
by Sectoid
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: 2267

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 ...