The Last four percent is driving me round the twist

Numerous tools and their recommendations have been followed but Google’s PageSpeed Insights has me beaten :frowning:

Any ideas on how to conquer this last four percent?

Did you try adding word-wrap?

96 / 100User Experience
Consider Fixing:
Size content to viewport
The page content is too wide for the viewport, forcing the user to scroll horizontally. Size the page content to the viewport to provide a better user experience.
The page content is 339 CSS pixels wide, but the viewport is only 320 CSS pixels wide. The following elements fall outside the viewport:

The element <div class="content tal p2m">Actually it wa…che/URIs.html.</div> falls outside the viewport.

OH yes, umpteen attempts and only managed to reduce the percentage by a single figure :frowning:

Maybe get rid of all those extra “for display spacing” break tags and use CSS instead?

											Actually it was late yesterday while surfing for how to use Laravel file caching. <br>
<div class="tac"><img src="" style="width:100%; max-width:398px;" alt="eureka"></div><br>
I discovered only two .htaccess lines are required to test if a file is in a cache folder. If the file exists then display the file else fall through and load PHP, Laravel, MySql, etc. <br>
It is quite easy to test by displaying a Laravel generated file, viewing the source of the URI and saving to the Cache folder with the same URI and a .html extension. <br>
No doubt this is not new to many who are familiar with Apache but to me was a revelation. I really like the idea of using Apache for what is was designed to do rather than loading numerous libraries to achieve a slower result.<br>
For those who are interested I will not spoil the fun of discovering for yourself the two lines necessary which is far better than mindlessly copying and pasting :) <br>
Also delighted to discover that URIs with paths are also respected, only required to duplicate the path in the cache folder. <br>
<h3>The technique should also work for other PHP Frameworks, CMS Systems, WordPress, etc</h3><br>
Next task is how to automate the procedure, I could possibly use the genenerated sitemap.xml to obtain the URIs and then use Php to file_get_contents(...) then save the string to cache/URIs.html.				

The content is obtained from a database memo field and display using PHP nltbr(…).

Event with an empty content the problem is not fixed.

I wonder if it’s a bug in the tool? I don’t get scrollbars when I narrow the page using Firefox 34

A friend was having problems reading one of the novels and I added padding: 0 1em to resolve the margin problem. I have just removed that and made lots of other changes. Now the side margin is OK even though it is set at padding:0; - the mind boggles.

The percentage does actually reach 100% sometimes and other pages drops back to 98 or 99%.

I will give it a rest for a day and try later.

The joys of trying to modify scripts written by others.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.