Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Defer parsing scripts

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
computo
Smarty n00b


Joined: 12 Jun 2014
Posts: 1

PostPosted: Thu Jun 12, 2014 2:57 pm    Post subject: Defer parsing scripts Reply with quote

390.6KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

How can i add async or defer

{script src="js/lib/jquery/jquery.min.js"}
{script src="js/tygh/core.js"}
{script src="js/tygh/ajax.js"}
{script src="js/tygh/history.js"}
{script src="js/lib/autonumeric/autoNumeric.js"}
{script src="js/lib/jqueryui/jquery-ui.custom.min.js"}
{script src="js/lib/tools/tooltip.min.js"}
{script src="js/lib/appear/jquery.appear-1.1.1.js"}
Back to top
View user's profile Send private message
epnb
Smarty Rookie


Joined: 24 Sep 2014
Posts: 8

PostPosted: Wed Sep 24, 2014 10:22 am    Post subject: Reply with quote

Take a look at :
http://www.feedthebot.com/pagespeed/defer-loading-javascript.html

you will need {literal}{/literal} from part to part of the inline javascript.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP