Posts by: Furukoo

Posts: 9
Post: 6277
Topic: Parsing js script in the end on the html <body>
Here some recommandation from Google Page Speed

 

Details from Google

There are several techniques that can be used to defer parsing of JavaScript. The simplest and preferred technique is to simply Defer loading of JavaScript until it is needed. A second technique is to use the <script async> attribute where appropriate, which prevents parsing from blocking the initial page load by deferring it until the browser's UI thread is not busy doing something else. If neither of these techniques is suitable, there are some additional techniques commonly used in mobile applications, described below:

When building mobile applications, it can be necessary to load all of the JavaScript needed by an application up front, so the application can continue to work when the user is offline. In this case, some applications, such as mobile Gmail, find it useful to load JavaScript in comments and later eval() the JavaScript when it is needed. This approach guarantees that all JavaScript is loaded during the initial page load, while not requiring that JavaScript to be parsed.

An alternative to storing code in comments is storing code in JavaScript string literals. When using this technique, the JavaScript is only parsed when needed, again by callingeval() on the string literal. This technique also allows an application to load JavaScript early, but defer parsing until it is needed.

Note that moving your '<script>' tags to the end of the page is sub-optimal, since the browser will continue to show a busy indicator until the page has finished parsing this JavaScript. Users may wait until the page load indicator shows that the page load is complete before interacting with the page, so it is important to load JavaScript in a way that minimizes the time it takes for the browser to indicate that the page load is complete.

In our own tests conducted in early 2011, we found that on modern mobile devices, each additional kilobyte of JavaScript adds about 1ms of parse time to the overall page load time. So 100kB of JavaScript included in the initial page load would add 100ms of load time for your users. Because JavaScript must be parsed on every visit to a page, this added load time will be part of every page load, whether loaded from the network, via the browser cache, or in HTML5 offline mode.

https://developers.google.com/speed/docs/best-practices/mobile

Pehaps someone can make a plugin ?

Edited: 8 years ago
Post: 6272
Topic: Parsing js script in the end on the html <body>

Hello

I search in the 'gpOutput::GetHead();' function to desabled the parsing of combined javascript.

Then i want to defer parsing in the end of the html document just before </body>

 

someone can said me where is the output function for javascript ?

Thanks

8 years ago
Post: 3774
Topic: Upgrade from 2.3.3 to 2.4 : Visual problem in the Special_Co

Thanks for all
I have fixed by modify aditionnal.css file

compare the old and new version :
- 2.3.3
.contactform ul{
 margin:0;
 width:50%;
}

- 2.4
.contactform{
 margin:0;
 width:50%;
}

Perhaps is a bug ?


 

9 years ago
Post: 3764
Topic: Upgrade from 2.3.3 to 2.4 : Visual problem in the Special_Co

Hello

When i switche to the 2.4 include files i have this problem with the Special_Contact form :

2.3.3 version :

2.4 version :

You can see margin no good vith the 2.4 version.

One idea ?

Thanks

http://www.aplusb.fr/Special_Contact

 

 


 

Edited: 9 years ago
Post: 3232
Topic: Rewrites rules in the .htaccess

Thanks for reply

When i add this line -> RewriteCond %{HTTP_HOST} ^www$ [NC]

I have a HTTP 404 error returned on all pages except the home page http://www.aplusb.fr

I delete the line

With the basics rules web site accessible with all sub domain name :(

try http://dummy.aplusb.fr

Another idéa ?

Edited: 9 years ago
Post: 3225
Topic: Rewrites rules in the .htaccess

Hello

I need a sub domain on my web site
In my host i create one

this link  st.aplusb.fr/soutien.png
go to this www.aplusb.fr/sdoms/st/soutien.png
 

When i active rewriting for supress index.php in the url
gpEasy rewriting rules mades mistakes with my sub domain rules

Here htaccess rules :

# BEGIN gpEasy
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv gp_rewrite On
</IfModule>
RewriteEngine On
RewriteBase "/"
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?(.*) "/index.php/$1" [L]
</IfModule>
# END gpEasy


RewriteEngine On
# redirection des sous-domaines
RewriteCond %{REQUEST_URI} !^/sdoms
RewriteCond %{HTTP_HOST} ^([^.]*)\.?([^.]+).([^.]+)$ [NC]
RewriteCond %1 !^www$ [NC]
RewriteRule ^(.*)$ /sdoms/%1/$1
 
# fix trailing slash sur les serveurs web1 Pack
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !^/[^/]+/$
RewriteRule ^sdoms/[^/]+/(.+[^/])$ http://%{HTTP_HOST}/$1/ [R] [L]

 

Someone can help me to fix the rules for my specific configuration ?

Thanks a lot

Edited: 9 years ago
Post: 3210
Topic: gpEasy Speed records with GetMetrix

Hello

I want to optimise gEasy for my website.
I use http://gtmetrix.com/ to build speed indicator -> http://gtmetrix.com/reports/www.aplusb.fr/3tj7uc04

Get Metrix suggest some recommendations for my website :
 

  • Remove query strings from static resources


Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:

  • Remove unused CSS

 95.6% of CSS (estimated 5.8kB of 6.1kB) is not used by the current page.
 

  •  Use efficient selector

Very inefficient rules (good to fix on any page):

  • .messages * Universal key with descendant selector

  • .leftnav .menu_top ul ul a Tag key with 4 descendant selectors

Inefficient rules (good to fix on interactive pages):

  • .messages li li Tag key with 2 descendant selectors

  • .contactform li label Tag key with 2 descendant selectors

  • * html body Tag key with 2 descendant selectors

  • * html div Tag key with 2 descendant selectors

  • #liste_horiz ul li Tag key with 2 descendant selectors

  • #lst_hor_cadre ul li Tag key with 2 descendant selectors

  • .leftnav .menu_top ul Tag key with 2 descendant selectors

  • .leftnav .menu_top ul Tag key with 2 descendant selectors

  • .leftnav .menu_top li Tag key with 2 descendant selectors

  • .leftnav .menu_top ul a Tag key with 3 descendant selectors

  • .leftnav .menu_top a Tag key with 2 descendant selectors

  • .leftnav .menu_top a:hover Tag key with 2 descendant selectors

  • #menu li a Tag key with 2 descendant selectors

  • #menu li:hover a Tag key with 2 descendant selectors

Rules that use the :hover pseudo-selector on non-anchor elements. This can cause performance problems in Internet Explorer versions 7 and 8 when a strict doctype is used.

  • #menu li:hover a

Is it possible to fix mores of this recommandations ?

Thanks

 

9 years ago
Post: 3205
Topic: Help

Thanks for reply

Yes it seemed to be the problem.

but i can not delet this char.

I use PSPAD editor for css editing.

-> I load last version of PSPad and the problem is solved now.

Edited: 9 years ago
Post: 3201
Topic: Help

Hello

I have a problem with my gpEasy website.

The body property include in the style css dont apply and the style not working properly

I search with some inspector (firebug and chrome)

The W3C ccs analyse detect this error :

Lexical error at line 2, column 1. Encountered: "\ufeff" (65279), after : ""  body{padding:0;margin:0;font-size:15px;background:#FAFAFA;font-family:Arial,helvetica,sans-serif;color:#646464;}

The css style like this :

/*** The Essential Code ***/

body
{
  padding: 0;
  margin: 0;
  font-size: 15px;
  background: #FAFAFA;
  font-family: Arial, helvetica, sans-serif;
  color: #646464;
}

I dont understand where is my error.

body property are not applie on the web site www.aplusb.fr

Someone can see and help me ?

Thanks

9 years ago

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register